Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OSGGeomUtils::GeometryBuilder Class Reference
Inheritance diagram for OSGGeomUtils::GeometryBuilder:
vtStructure3d

Public Member Functions

 GeometryBuilder (const vtBuilding3d &Building)
 
vtGeodeGenerate ()
 
- Public Member Functions inherited from vtStructure3d
vtTransformGetContainer ()
 
virtual vtGeodeGetGeom ()
 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)
 
vtMaterialArrayGetSharedMaterialArray () const
 
float ColorDiff (const RGBi &c1, const RGBi &c2)
 

Protected Attributes

const vtBuilding3dm_Building
 
osg::ref_ptr< PrimitiveCachem_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 vtMaterialDescriptorFindMaterialDescriptor (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
 

Member Function Documentation

void OSGGeomUtils::GeometryBuilder::AddDoorSection ( vtEdge pEdge,
vtEdgeFeature pFeat,
const FLine3 quad 
)
protected

Builds a door section. will also build the wall above the door to ceiling height.

void OSGGeomUtils::GeometryBuilder::AddHighlightSection ( vtEdge pEdge,
const FLine3 quad 
)
protected

Creates geometry for a highlighted area (an edge).

void OSGGeomUtils::GeometryBuilder::AddWallSection ( vtEdge pEdge,
bool  bUniform,
const FLine3 quad,
float  vf1,
float  vf2,
float  hf1 = -1.0f 
)
protected

Builds a wall, given material index, starting and end points, height, and starting height.


The documentation for this class was generated from the following files: