|
virtual bool | CreateNode (vtTerrain *pTerr) |
|
virtual bool | IsCreated () |
|
virtual vtGeode * | GetGeom () |
| Access the Geometry node for this structure, if it has one.
|
|
virtual osg::Node * | GetContained () |
|
virtual void | DeleteNode () |
|
virtual void | ShowBounds (bool bShow) |
|
vtBuilding3d & | operator= (const vtBuilding &v) |
|
void | DestroyGeometry () |
|
bool | CreateGeometry (vtHeightField3d *pHeightField) |
|
void | AdjustHeight (vtHeightField3d *pHeightField) |
|
void | Randomize (int iStories) |
|
vtBuilding & | operator= (const vtBuilding &v) |
|
void | SetFootprint (int i, const DLine2 &dl) |
|
void | SetFootprint (int i, const DPolygon2 &poly) |
|
const DPolygon2 & | GetFootprint (int i) const |
|
const DLine2 & | GetOuterFootprint (int i) const |
|
bool | GetBaseLevelCenter (DPoint2 &p) const |
|
void | SetRectangle (const DPoint2 ¢er, float fWidth, float fDepth, float fRotation=0.0f) |
|
void | SetCircle (const DPoint2 ¢er, float fRad) |
|
void | FlipFootprintDirection () |
|
float | CalculateBaseElevation (vtHeightField *pHeightField) |
|
void | TransformCoords (OCT *trans) |
|
void | SetRoofType (RoofType rt, int iSlope=-1, int iLev=-1) |
|
RoofType | GetRoofType () |
|
void | SetColor (BldColor which, RGBi col) |
|
RGBi | GetColor (BldColor which) const |
|
void | SetStories (int i) |
|
int | GetStories () const |
|
float | GetTotalHeight () const |
|
uint | GetNumLevels () const |
|
vtLevel * | GetLevel (int i) |
|
const vtLevel * | GetLevel (int i) const |
|
vtLevel * | CreateLevel (const DPolygon2 &footprint) |
|
vtLevel * | CreateLevel () |
|
void | InsertLevel (int iLev, vtLevel *pLev) |
|
void | DeleteLevel (int iLev) |
|
bool | GetExtents (DRECT &rect) const |
|
void | Offset (const DPoint2 &delta) |
|
double | GetDistanceToInterior (const DPoint2 &point) const |
|
void | WriteXML (GZOutput &out, bool bDegrees) const |
|
void | AddDefaultDetails () |
|
void | DetermineLocalFootprints () |
|
const FPolygon3 & | GetLocalFootprint (int i) const |
|
bool | IsContainedBy (const DRECT &rect) const |
|
void | SwapLevels (int lev1, int lev2) |
|
void | CopyFromDefault (vtBuilding *pDefBld, bool bDoHeight) |
|
void | CopyFrom (const vtStructure &v) |
|
void | SetType (vtStructureType t) |
|
vtStructureType | GetType () |
|
void | SetElevationOffset (float fOffset) |
|
float | GetElevationOffset () const |
|
void | SetAbsolute (bool b) |
|
bool | GetAbsolute () const |
|
vtBuilding * | GetBuilding () |
|
vtFence * | GetFence () |
|
vtStructInstance * | GetInstance () |
|
void | WriteTags (GZOutput &out) const |
|
void | Select (bool b) |
|
bool | IsSelected () |
|
void | ToggleSelect () |
|
void | AddTag (const vtTag &pTag) |
|
void | AddTag (const char *name, const char *value) |
|
vtTag * | FindTag (const char *szTagName) |
|
const vtTag * | FindTag (const char *szTagName) const |
|
vtTag * | GetTag (int index) |
|
const vtTag * | GetTag (int index) const |
|
uint | NumTags () const |
|
void | RemoveTag (int index) |
|
void | RemoveTag (const char *szTagName) |
|
void | Clear () |
|
void | SetValueString (const char *szTagName, const vtString &string, bool bCreating=false) |
|
void | SetValueBool (const char *szTagName, bool value, bool bCreating=false) |
|
void | SetValueInt (const char *szTagName, int value, bool bCreating=false) |
|
void | SetValueFloat (const char *szTagName, float value, bool bCreating=false) |
|
void | SetValueDouble (const char *szTagName, double value, bool bCreating=false) |
|
void | SetValueRGBi (const char *szTagName, const RGBi &value, bool bCreating=false) |
|
const char * | GetValueString (const char *szTagName, bool bSuppressWarning=false) const |
|
bool | GetValueBool (const char *szTagName) const |
|
int | GetValueInt (const char *szTagName) const |
|
float | GetValueFloat (const char *szTagName) const |
|
double | GetValueDouble (const char *szTagName) const |
|
RGBi | GetValueRGBi (const char *szTagName) const |
|
bool | GetValueString (const char *szTagName, vtString &string) const |
|
bool | GetValueBool (const char *szTagName, bool &bValue) const |
|
bool | GetValueInt (const char *szTagName, int &iValue) const |
|
bool | GetValueFloat (const char *szTagName, float &fValue) const |
|
bool | GetValueDouble (const char *szTagName, double &dValue) const |
|
bool | GetValueRGBi (const char *szTagName, RGBi &color) const |
|
vtTagArray & | operator= (const vtTagArray &v) |
|
bool | operator== (const vtTagArray &v) const |
|
bool | operator!= (const vtTagArray &v) const |
|
void | CopyTagsFrom (const vtTagArray &v) |
|
bool | WriteToXML (const char *fname, const char *title) const |
|
void | WriteToXMLBody (FILE *fp, int iIndent) const |
|
bool | LoadFromXML (const char *fname) |
|
virtual bool | OverrideValue (const char *szTagName, const vtString &string) |
|
virtual void | WriteOverridesToXML (FILE *fp) const |
|
void | LogTags () const |
|
vtTransform * | GetContainer () |
|
void | SetCastShadow (bool b) |
|
bool | GetCastShadow () |
|
const bool | GetVIAContributor () const |
|
const bool | GetVIATarget () const |
|
void | SetVIAContributor (const bool bVIAContributor) |
|
void | SetVIATarget (const bool bVIATarget) |
|
|
bool | MakeFacade (vtEdge *pEdge, FLine3 &quad, int stories) |
|
vtMesh * | FindMatMesh (const vtString &Material, const RGBi &color, vtMesh::PrimType ePrimType) |
|
void | UpdateWorldLocation (vtHeightField3d *pHeightField) |
|
float | GetHeightOfStories () |
|
void | CreateUpperPolygon (vtLevel *lev, FPolygon3 &poly, FPolygon3 &poly2) |
|
void | CreateEdgeGeometry (vtLevel *pLev, const FPolygon3 &polygon1, const FPolygon3 &polygon2, int iEdge, bool bShowEdge) |
|
void | CreateUniformLevel (int iLevel, float fHeight, int iHighlightEdge) |
|
void | AddWallSection (vtEdge *pEdge, bool bUniform, const FLine3 &quad, float h1, float h2, float hf1=-1.0f) |
|
void | AddHighlightSection (vtEdge *pEdge, const FLine3 &quad) |
|
void | AddDoorSection (vtEdge *pWall, vtEdgeFeature *pFeat, const FLine3 &quad) |
|
void | AddWindowSection (vtEdge *pWall, vtEdgeFeature *pFeat, const FLine3 &quad) |
|
void | AddWallNormal (vtEdge *pWall, vtEdgeFeature *pFeat, const FLine3 &quad) |
|
void | AddFlatRoof (const FPolygon3 &pp, vtLevel *pLev) |
|
FPoint3 | Normal (const FPoint3 &p0, const FPoint3 &p1, const FPoint3 &p2) |
|
float | MakeFelkelRoof (const FPolygon3 &pp, vtLevel *pLev) |
|
bool | Collinear2d (const FPoint3 &p1, const FPoint3 &p2, const FPoint3 &p3) |
|
int | FindVertex (FPoint3 Point, FLine3 &RoofSection3D, vtArray< int > &iaVertices) |
|
int | FindMatIndex (const vtString &Material, const RGBf &inputColor=RGBf(), int iType=-1) |
|
vtMaterialArray * | GetSharedMaterialArray () const |
|
float | ColorDiff (const RGBi &c1, const RGBi &c2) |
|
This class extends vtBuilding with the abiliity to construct and operate on a 3D model of a parametric building.