#include <Structure3d.h>
Public Member Functions | |
vtTransform * | GetContainer () |
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 vtGeode * | GetGeom () |
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 vtMaterialDescriptor * | FindMaterialDescriptor (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) |
vtMaterialArray * | GetSharedMaterialArray () 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 |
This class contains the extra methods needed by a vtStructure to support the ability to construct and manage a 3D representation.