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

#include <Structure3d.h>

Inheritance diagram for vtStructInstance3d:
vtStructInstance vtStructure3d vtStructure Selectable vtTagArray

Public Member Functions

virtual double DistanceToPoint (const DPoint2 &p, float fMaxRadius) const
 
virtual bool CreateNode (vtTerrain *pTerr)
 Create the node(s) and position them on the indicated heightfield.
 
virtual bool IsCreated ()
 
virtual void DeleteNode ()
 
virtual void ShowBounds (bool bShow)
 
virtual osg::Node * GetContained ()
 
void UpdateTransform (vtHeightField3d *pHeightField)
 (Re-)position the instance on the indicated heightfield
 
void Reload ()
 Attempt to reload from disk.
 
- Public Member Functions inherited from vtStructInstance
vtStructInstanceoperator= (const vtStructInstance &v)
 
void WriteXML (GZOutput &out, bool bDegrees) const
 
void Offset (const DPoint2 &delta)
 
bool GetExtents (DRECT &rect) const
 
bool IsContainedBy (const DRECT &rect) const
 
void SetPoint (const DPoint2 &p)
 
DPoint2 GetPoint () const
 
void SetRotation (float f)
 
float GetRotation () const
 
void SetScale (float f)
 
float GetScale () const
 
void SetItem (vtItem *pItem)
 
vtItemGetItem ()
 
- 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 ()
 
virtual vtGeodeGetGeom ()
 Access the Geometry node for this structure, if it has one.
 
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 Attributes

vtGeodem_pHighlight
 
osg::ref_ptr< osg::Node > m_pModel
 
- Protected Attributes inherited from vtStructInstance
DPoint2 m_p
 
float m_fRotation
 
float m_fScale
 
vtItemm_pItem
 
- 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 ()
 
- 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)
 
- 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 vtStructInstance with the ability to construct and manage 3D representations of the instance.

Member Function Documentation

void vtStructInstance3d::ShowBounds ( bool  bShow)
virtual

Display some bounding wires around the object to highlight it.

Reimplemented from vtStructure3d.


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