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

#include <Trees.h>

Inheritance diagram for vtPlantAppearance3d:
vtPlantAppearance

Public Member Functions

 vtPlantAppearance3d (AppearType type, const char *filename, float width, float height, float shadow_radius, float shadow_darkness)
 
 vtPlantAppearance3d (const vtPlantAppearance &v)
 
void CheckAvailability ()
 
void LoadAndCreate ()
 
bool GenerateGeom (vtTransform *container)
 
bool IsAvailable ()
 
- Public Member Functions inherited from vtPlantAppearance
 vtPlantAppearance (AppearType type, const char *filename, float width, float height, float shadow_radius, float shadow_darkness)
 

Static Public Attributes

static float s_fPlantScale = 1.0f
 
static bool s_bPlantShadows = false
 

Protected Member Functions

vtMeshCreateTreeMesh (float fTreeScale, bool bShadows)
 
void _Defaults ()
 

Protected Attributes

osg::ref_ptr< vtMaterialArraym_pMats
 
vtGeodePtr m_pGeode
 
osg::ref_ptr< vtMeshm_pMesh
 
int m_iMatIdx
 
osg::ref_ptr< osg::Node > m_pExternal
 
bool m_bAvailable
 
bool m_bCreated
 

Additional Inherited Members

- Public Attributes inherited from vtPlantAppearance
AppearType m_eType
 
vtString m_filename
 
float m_width
 
float m_height
 
float m_shadow_radius
 
float m_shadow_darkness
 

Detailed Description

This class extends vtPlantAppearance with the ability to construct 3D geometry for an appearance.

Member Function Documentation

vtMesh * vtPlantAppearance3d::CreateTreeMesh ( float  fTreeScale,
bool  bShadows 
)
protected

Create an object to represent a textured plant billboard. Makes two intersecting polygons (4 triangles).


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