Public Member Functions | |
| GeometryBuilder (const vtBuilding3d &Building) | |
| vtGeode * | Generate () |
Public Member Functions inherited from vtStructure3d | |
| vtTransform * | GetContainer () |
| virtual vtGeode * | GetGeom () |
| Access the Geometry node for this structure, if it has one. | |
| virtual void | ShowBounds (bool bShow) |
| Pass true to turn on a wireframe hightlight geometry for this instance. | |
| void | SetCastShadow (bool b) |
| bool | GetCastShadow () |
| const bool | GetVIAContributor () const |
| const bool | GetVIATarget () const |
| void | SetVIAContributor (const bool bVIAContributor) |
| void | SetVIATarget (const bool bVIATarget) |
Protected Member Functions | |
| void | AddFlatRoof (const FPolygon3 &pp, const vtLevel *pLev) |
| void | CreateUniformLevel (int iLevel, float fHeight, int iHighlightEdge) |
| bool | MakeFacade (vtEdge *pEdge, FLine3 &quad, int stories) |
| osg::Vec3 | Normal (const vtVec3 &p0, const vtVec3 &p1, const vtVec3 &p2) |
| void | AddWallSection (vtEdge *pEdge, bool bUniform, const FLine3 &quad, float vf1, float vf2, float hf1=-1.0f) |
| void | AddHighlightSection (vtEdge *pEdge, const FLine3 &quad) |
| float | MakeFelkelRoof (const FPolygon3 &EavePolygons, const vtLevel *pLev) |
| bool | Collinear2d (const FPoint3 &Previous, const FPoint3 &Current, const FPoint3 &Next) |
| void | CreateUpperPolygon (const vtLevel *lev, FPolygon3 &polygon, FPolygon3 &polygon2) |
| void | CreateEdgeGeometry (const vtLevel *pLev, const FPolygon3 &polygon1, const FPolygon3 &polygon2, int iEdge, bool bShowEdge) |
| void | AddWallNormal (vtEdge *pEdge, vtEdgeFeature *pFeat, const FLine3 &quad) |
| void | AddWindowSection (vtEdge *pEdge, vtEdgeFeature *pFeat, const FLine3 &quad) |
| void | AddDoorSection (vtEdge *pEdge, vtEdgeFeature *pFeat, const FLine3 &quad) |
| int | FindVertex (FPoint3 Point, FLine3 &RoofSection3D, vtArray< int > &iaVertices) |
| osg::Node * | GetContained (void) |
| bool | CreateNode (vtTerrain *) |
| Create the node(s) and position them on the indicated heightfield. | |
| bool | IsCreated (void) |
| void | DeleteNode (void) |
Protected Member Functions inherited from vtStructure3d | |
| int | FindMatIndex (const vtString &Material, const RGBf &inputColor=RGBf(), int iType=-1) |
| vtMaterialArray * | GetSharedMaterialArray () const |
| float | ColorDiff (const RGBi &c1, const RGBi &c2) |
Protected Attributes | |
| const vtBuilding3d & | m_Building |
| osg::ref_ptr< PrimitiveCache > | m_pPrimitiveCache |
Protected Attributes inherited from vtStructure3d | |
| vtTransformPtr | m_pContainer |
| bool | m_bIsVIAContributor |
| bool | m_bIsVIATarget |
Additional Inherited Members | |
Static Public Member Functions inherited from vtStructure3d | |
|
static vtMaterialDescriptorArray3d & | GetMaterialDescriptors () |
| static vtMaterialDescriptor * | FindMaterialDescriptor (const vtString &name, const RGBf &color=RGBf(), int type=-1) |
| static void | InitializeMaterialArrays () |
| static void | CreateSharedMaterials () |
Static Protected Attributes inherited from vtStructure3d | |
| static vtMaterialDescriptorArray3d | s_MaterialDescriptors |
| static bool | s_bMaterialsLoaded = false |
|
protected |
Builds a door section. will also build the wall above the door to ceiling height.
|
protected |
Creates geometry for a highlighted area (an edge).
|
protected |
Builds a wall, given material index, starting and end points, height, and starting height.
1.8.4