Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtFence3d Class Reference

#include <Fence3d.h>

Inheritance diagram for vtFence3d:
vtFence vtStructure3d vtStructure Selectable vtTagArray

Public Member Functions

virtual bool CreateNode (vtTerrain *pTerr)
 
virtual bool IsCreated ()
 
virtual vtGeodeGetGeom ()
 Access the Geometry node for this structure, if it has one.
 
virtual osg::Node * GetContained ()
 
virtual void DeleteNode ()
 
virtual void ShowBounds (bool bShow)
 Pass true to turn on a wireframe hightlight geometry for this instance.
 
virtual void SetParams (const vtLinearParams &params)
 
virtual void ProfileChanged ()
 
void DestroyGeometry ()
 
- Public Member Functions inherited from vtFence
vtFenceoperator= (const vtFence &v)
 
void AddPoint (const DPoint2 &epos)
 
DLine2GetFencePoints ()
 
void GetClosestPoint (const DPoint2 &point, DPoint2 &closest)
 
double GetDistanceToLine (const DPoint2 &point)
 
int GetNearestPointIndex (const DPoint2 &point, double &fDist)
 
bool IsContainedBy (const DRECT &rect) const
 
bool GetExtents (DRECT &rect) const
 
void WriteXML (GZOutput &out, bool bDegrees) const
 
void ApplyStyle (vtLinearStyle style)
 
vtLinearParamsGetParams ()
 
- Public Member Functions inherited from vtStructure
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
 
vtBuildingGetBuilding ()
 
vtFenceGetFence ()
 
vtStructInstanceGetInstance ()
 
void WriteTags (GZOutput &out) const
 
- Public Member Functions inherited from Selectable
void Select (bool b)
 
bool IsSelected ()
 
void ToggleSelect ()
 
- Public Member Functions inherited from vtTagArray
void AddTag (const vtTag &pTag)
 
void AddTag (const char *name, const char *value)
 
vtTagFindTag (const char *szTagName)
 
const vtTagFindTag (const char *szTagName) const
 
vtTagGetTag (int index)
 
const vtTagGetTag (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
 
vtTagArrayoperator= (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
 
- Public Member Functions inherited from vtStructure3d
vtTransformGetContainer ()
 
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 Init ()
 
void LoadProfile ()
 
void AddFencepost (const FPoint3 &p1, int iMatIdx)
 
void AddWireMeshes (const FLine3 &p3)
 
void AddFlatConnectionMesh (const FLine3 &p3)
 
void AddThickConnectionMesh (const FLine3 &p3)
 
void AddProfileConnectionMesh (const FLine3 &p3)
 
void AddPostExtensions (const FLine3 &p3)
 
void AddFenceMeshes (vtHeightField3d *pHeightField)
 
- 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

vtGeodePtr m_pFenceGeom
 
vtMeshm_pHighlightMesh
 
bool m_bBuilt
 
FLine3 m_Posts3d
 
float m_fMaxGroundY
 
FLine2 m_Profile
 
- Protected Attributes inherited from vtFence
DLine2 m_pFencePts
 
vtLinearParams m_Params
 
- Protected Attributes inherited from vtStructure
vtStructureType m_type
 
float m_fElevationOffset
 
bool m_bAbsolute
 
- Protected Attributes inherited from Selectable
bool m_bSelect
 
- Protected Attributes inherited from vtTagArray
std::vector< vtTagm_tags
 
- Protected Attributes inherited from vtStructure3d
vtTransformPtr m_pContainer
 
bool m_bIsVIAContributor
 
bool m_bIsVIATarget
 

Additional Inherited Members

- Static Public Member Functions inherited from vtTagArray
static void SetVerbose (bool value)
 
- 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 vtTagArray
static bool s_bVerbose = false
 
- Static Protected Attributes inherited from vtStructure3d
static vtMaterialDescriptorArray3d s_MaterialDescriptors
 
static bool s_bMaterialsLoaded = false
 

Detailed Description

This class extends vtFence with the abiliity to construct and operate on a 3D model of a linear structore (parametric fence or wall.)

Member Function Documentation

bool vtFence3d::CreateNode ( vtTerrain pTerr)
virtual

Build (or rebuild) the geometry for a fence.

Implements vtStructure3d.


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