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

#include <Structure3d.h>

Inheritance diagram for vtStructure3d:
OSGGeomUtils::GeometryBuilder vtBuilding3d vtFence3d vtStructInstance3d

Public Member Functions

vtTransformGetContainer ()
 
virtual osg::Node * GetContained ()=0
 
virtual bool CreateNode (vtTerrain *pTerr)=0
 Create the node(s) and position them on the indicated heightfield.
 
virtual bool IsCreated ()=0
 
virtual vtGeodeGetGeom ()
 Access the Geometry node for this structure, if it has one.
 
virtual void DeleteNode ()=0
 
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)
 

Static Public Member Functions

static
vtMaterialDescriptorArray3d
GetMaterialDescriptors ()
 
static vtMaterialDescriptorFindMaterialDescriptor (const vtString &name, const RGBf &color=RGBf(), int type=-1)
 
static void InitializeMaterialArrays ()
 
static void CreateSharedMaterials ()
 

Protected Member Functions

int FindMatIndex (const vtString &Material, const RGBf &inputColor=RGBf(), int iType=-1)
 
vtMaterialArrayGetSharedMaterialArray () const
 
float ColorDiff (const RGBi &c1, const RGBi &c2)
 

Protected Attributes

vtTransformPtr m_pContainer
 
bool m_bIsVIAContributor
 
bool m_bIsVIATarget
 

Static Protected Attributes

static vtMaterialDescriptorArray3d s_MaterialDescriptors
 
static bool s_bMaterialsLoaded = false
 

Detailed Description

This class contains the extra methods needed by a vtStructure to support the ability to construct and manage a 3D representation.


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