Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
DrawObject Class Reference

#include <DrawObject.h>

Inherits RenderObjClass.

Public Member Functions

 DrawObject (void)
 
 DrawObject (const DrawObject &src)
 
DrawObjectoperator= (const DrawObject &)
 
 ~DrawObject (void)
 
virtual RenderObjClassClone (void) const
 
virtual int Class_ID (void) const
 
virtual void Render (RenderInfoClass &rinfo)
 
virtual Bool Cast_Ray (RayCollisionTestClass &raytest)
 
virtual void Get_Obj_Space_Bounding_Sphere (SphereClass &sphere) const
 
virtual void Get_Obj_Space_Bounding_Box (AABoxClass &aabox) const
 
Int freeMapResources (void)
 
int initData (void)
 
void setDrawObjects (Bool val, Bool waypoints, Bool poly, Bool bounding, Bool sight, Bool weapon, Bool sound, Bool testart, Bool letterbox)
 
MeshClasspeekMesh (void)
 
void getMeshBounds (SphereClass *pSphere)
 
- Public Member Functions inherited from RenderObjClass
 RenderObjClass (void)
 
 RenderObjClass (const RenderObjClass &src)
 
RenderObjClassoperator= (const RenderObjClass &)
 
virtual ~RenderObjClass (void)
 
virtual const char * Get_Name (void) const
 
virtual void Set_Name (const char *name)
 
virtual const char * Get_Base_Model_Name (void) const
 
virtual void Set_Base_Model_Name (const char *name)
 
virtual int Get_Num_Polys (void) const
 
virtual void Special_Render (SpecialRenderInfoClass &rinfo)
 
virtual void On_Frame_Update ()
 
virtual void Restart (void)
 
virtual void Add (SceneClass *scene)
 
virtual void Remove (void)
 
virtual SceneClassGet_Scene (void)
 
virtual SceneClassPeek_Scene (void)
 
virtual void Set_Container (RenderObjClass *con)
 
virtual void Validate_Transform (void) const
 
RenderObjClassGet_Container (void) const
 
virtual void Set_Transform (const Matrix3D &m)
 
virtual void Set_Position (const Vector3 &v)
 
const Matrix3DGet_Transform (void) const
 
const Matrix3DGet_Transform (bool &is_transform_identity) const
 
const Matrix3DGet_Transform_No_Validity_Check (void) const
 
const Matrix3DGet_Transform_No_Validity_Check (bool &is_transform_identity) const
 
bool Is_Transform_Identity () const
 
bool Is_Transform_Identity_No_Validity_Check () const
 
Vector3 Get_Position (void) const
 
virtual void Notify_Added (SceneClass *scene)
 
virtual void Notify_Removed (SceneClass *scene)
 
virtual int Get_Num_Sub_Objects (void) const
 
virtual RenderObjClassGet_Sub_Object (int index) const
 
virtual int Add_Sub_Object (RenderObjClass *subobj)
 
virtual int Remove_Sub_Object (RenderObjClass *robj)
 
virtual RenderObjClassGet_Sub_Object_By_Name (const char *name, int *index=NULL) const
 
virtual int Get_Num_Sub_Objects_On_Bone (int boneindex) const
 
virtual RenderObjClassGet_Sub_Object_On_Bone (int index, int boneindex) const
 
virtual int Get_Sub_Object_Bone_Index (RenderObjClass *subobj) const
 
virtual int Get_Sub_Object_Bone_Index (int LodIndex, int ModelIndex) const
 
virtual int Add_Sub_Object_To_Bone (RenderObjClass *subobj, int bone_index)
 
virtual int Add_Sub_Object_To_Bone (RenderObjClass *subobj, const char *bname)
 
virtual int Remove_Sub_Objects_From_Bone (int boneindex)
 
virtual int Remove_Sub_Objects_From_Bone (const char *bname)
 
virtual void Update_Sub_Object_Transforms (void)
 
virtual void Set_Animation (void)
 
virtual void Set_Animation (HAnimClass *motion, float frame, int anim_mode=ANIM_MODE_MANUAL)
 
virtual void Set_Animation (HAnimClass *motion0, float frame0, HAnimClass *motion1, float frame1, float percentage)
 
virtual void Set_Animation (HAnimComboClass *anim_combo)
 
virtual HAnimClassPeek_Animation (void)
 
virtual int Get_Num_Bones (void)
 
virtual const char * Get_Bone_Name (int bone_index)
 
virtual int Get_Bone_Index (const char *bonename)
 
virtual const Matrix3DGet_Bone_Transform (const char *bonename)
 
virtual const Matrix3DGet_Bone_Transform (int boneindex)
 
virtual void Capture_Bone (int bindex)
 
virtual void Release_Bone (int bindex)
 
virtual bool Is_Bone_Captured (int bindex) const
 
virtual void Control_Bone (int bindex, const Matrix3D &objtm, bool world_space_translation=false)
 
virtual const HTreeClassGet_HTree (void) const
 
virtual bool Cast_AABox (AABoxCollisionTestClass &boxtest)
 
virtual bool Cast_OBBox (OBBoxCollisionTestClass &boxtest)
 
virtual bool Intersect_AABox (AABoxIntersectionTestClass &boxtest)
 
virtual bool Intersect_OBBox (OBBoxIntersectionTestClass &boxtest)
 
virtual bool Intersect (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual bool Intersect_Sphere (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual bool Intersect_Sphere_Quick (IntersectionClass *Intersection, IntersectionResultClass *Final_Result)
 
virtual const SphereClassGet_Bounding_Sphere (void) const
 
virtual const AABoxClassGet_Bounding_Box (void) const
 
virtual void Update_Obj_Space_Bounding_Volumes (void)
 
virtual void Prepare_LOD (CameraClass &camera)
 
virtual void Recalculate_Static_LOD_Factors (void)
 
virtual void Increment_LOD (void)
 
virtual void Decrement_LOD (void)
 
virtual float Get_Cost (void) const
 
virtual float Get_Value (void) const
 
virtual float Get_Post_Increment_Value (void) const
 
virtual void Set_LOD_Level (int lod)
 
virtual int Get_LOD_Level (void) const
 
virtual int Get_LOD_Count (void) const
 
virtual void Set_LOD_Bias (float bias)
 
virtual int Calculate_Cost_Value_Arrays (float screen_area, float *values, float *costs) const
 
virtual RenderObjClassGet_Current_LOD (void)
 
virtual bool Build_Dependency_List (DynamicVectorClass< StringClass > &file_list, bool recursive=true)
 
virtual bool Build_Texture_List (DynamicVectorClass< StringClass > &texture_file_list, bool recursive=true)
 
virtual void Create_Decal (DecalGeneratorClass *generator)
 
virtual void Delete_Decal (uint32 decal_id)
 
virtual MaterialInfoClassGet_Material_Info (void)
 
virtual void Set_User_Data (void *value, bool recursive=false)
 
virtual void * Get_User_Data ()
 
virtual int Get_Num_Snap_Points (void)
 
virtual void Get_Snap_Point (int index, Vector3 *set)
 
virtual float Get_Screen_Size (CameraClass &camera)
 
virtual void Scale (float scale)
 
virtual void Scale (float scalex, float scaley, float scalez)
 
virtual void Set_ObjectScale (float scale)
 
const float Get_ObjectScale (void) const
 
void Set_ObjectColor (unsigned int color)
 
const unsigned int Get_ObjectColor (void) const
 
virtual int Get_Sort_Level (void) const
 
virtual void Set_Sort_Level (int level)
 
virtual int Is_Really_Visible (void)
 
virtual int Is_Not_Hidden_At_All (void)
 
virtual int Is_Visible (void) const
 
virtual void Set_Visible (int onoff)
 
virtual int Is_Hidden (void) const
 
virtual void Set_Hidden (int onoff)
 
virtual int Is_Animation_Hidden (void) const
 
virtual void Set_Animation_Hidden (int onoff)
 
virtual int Is_Force_Visible (void) const
 
virtual void Set_Force_Visible (int onoff)
 
virtual int Is_Translucent (void) const
 
virtual void Set_Translucent (int onoff)
 
virtual int Is_Alpha (void) const
 
virtual void Set_Alpha (int onoff)
 
virtual int Is_Additive (void) const
 
virtual void Set_Additive (int onoff)
 
virtual int Get_Collision_Type (void) const
 
virtual void Set_Collision_Type (int type)
 
virtual bool Is_Complete (void)
 
virtual bool Is_In_Scene (void)
 
virtual float Get_Native_Screen_Size (void) const
 
virtual void Set_Native_Screen_Size (float screensize)
 
void Set_Sub_Objects_Match_LOD (int onoff)
 
int Is_Sub_Objects_Match_LOD_Enabled (void)
 
void Set_Sub_Object_Transforms_Dirty (bool onoff)
 
bool Are_Sub_Object_Transforms_Dirty (void)
 
void Set_Ignore_LOD_Cost (bool onoff)
 
bool Is_Ignoring_LOD_Cost (void)
 
void Set_Is_Self_Shadowed ()
 
void Unset_Is_Self_Shadowed ()
 
int Is_Self_Shadowed () const
 
virtual const PersistFactoryClassGet_Factory (void) const
 
virtual bool Save (ChunkSaveClass &csave)
 
virtual bool Load (ChunkLoadClass &cload)
 
RenderHookClassGet_Render_Hook (void)
 
void Set_Render_Hook (RenderHookClass *hook)
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 
- Public Member Functions inherited from PostLoadableClass
 PostLoadableClass (void)
 
virtual ~PostLoadableClass (void)
 
virtual void On_Post_Load (void)
 
bool Is_Post_Load_Registered (void)
 
void Set_Post_Load_Registered (bool onoff)
 
- Public Member Functions inherited from MultiListObjectClass
 MultiListObjectClass (void)
 
virtual ~MultiListObjectClass (void)
 
MultiListNodeClassGet_List_Node () const
 
void Set_List_Node (MultiListNodeClass *node)
 

Static Public Member Functions

static void setDoBrushFeedback (Bool val)
 
static void setDoMeshFeedback (Bool val)
 
static void setDoRampFeedback (Bool val)
 
static void setDoBoundaryFeedback (Bool val)
 
static void setDoAmbientSoundFeedback (Bool val)
 
static void setBrushFeedbackParms (Bool square, Int width, Int featherWidth)
 
static void disableFeedback (void)
 
static void enableFeedback (void)
 
static Bool isFeedbackEnabled (void)
 
static void setFeedbackPos (Coord3D pos)
 
static void setWaypointDragFeedback (const Coord3D &start, const Coord3D &end)
 
static void setRampFeedbackParms (const Coord3D *start, const Coord3D *end, Real rampWidth)
 
static void stopWaypointDragFeedback ()
 
- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 

Protected Types

enum  { MAX_RADIUS = 50 , NUM_FEEDBACK_VERTEX = 201*201 , NUM_FEEDBACK_INDEX = 101*101*6 }
 
- Protected Types inherited from RenderObjClass
enum  {
  COLL_TYPE_MASK = 0x000000FF , IS_VISIBLE = 0x00000100 , IS_NOT_HIDDEN = 0x00000200 , IS_NOT_ANIMATION_HIDDEN = 0x00000400 ,
  IS_FORCE_VISIBLE = 0x00000800 , BOUNDING_VOLUMES_VALID = 0x00002000 , IS_TRANSLUCENT = 0x00004000 , IGNORE_LOD_COST = 0x00008000 ,
  SUBOBJS_MATCH_LOD = 0x00010000 , SUBOBJ_TRANSFORMS_DIRTY = 0x00020000 , IS_ALPHA = 0x00040000 , IS_ADDITIVE = 0x00100000 ,
  IS_SELF_SHADOWED = 0x00080000 , IS_CHEATER = 0x00100000 , IS_REALLY_VISIBLE = IS_VISIBLE | IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN , IS_NOT_HIDDEN_AT_ALL = IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN ,
  DEFAULT_BITS = COLL_TYPE_ALL | IS_NOT_HIDDEN | IS_NOT_ANIMATION_HIDDEN
}
 

Protected Member Functions

void addCircleToLineRenderer (const Coord3D &center, Real radius, Real width, unsigned long color, CameraClass *camera)
 
Int updateVB (DX8VertexBufferClass *vertexBufferTile, Int color, Bool doArrow, Bool doDiamond)
 
void updatePolygonVB (PolygonTrigger *pTrig, Bool selected, Bool isOpen)
 
void updateFeedbackVB (void)
 
void updateMeshVB (void)
 
void updateRampVB (void)
 
void updateWaypointVB (void)
 
void updateForWater (void)
 
void updateBoundaryVB (void)
 
void updateAmbientSoundVB (void)
 
void updateVBWithBoundingBox (MapObject *pMapObj, CameraClass *camera)
 
void updateVBWithSightRange (MapObject *pMapObj, CameraClass *camera)
 
void updateVBWithWeaponRange (MapObject *pMapObj, CameraClass *camera)
 
void updateVBWithTestArtHighlight (MapObject *pMapObj, CameraClass *camera)
 
void updateVBWithSoundRanges (MapObject *pMapObj, CameraClass *camera)
 
bool worldToScreen (const Coord3D *w, ICoord2D *s, CameraClass *camera)
 
- Protected Member Functions inherited from RenderObjClass
virtual void Add_Dependencies_To_List (DynamicVectorClass< StringClass > &file_list, bool textures_only=false)
 
virtual void Update_Cached_Bounding_Volumes (void) const
 
virtual void Update_Sub_Object_Bits (void)
 
bool Bounding_Volumes_Valid (void) const
 
void Invalidate_Cached_Bounding_Volumes (void) const
 
void Validate_Cached_Bounding_Volumes (void) const
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Protected Attributes

Int m_numTriangles
 
DX8IndexBufferClassm_indexBuffer
 indices defining a object icon
 
ShaderClass m_shaderClass
 shader or rendering state for heightmap
 
VertexMaterialClassm_vertexMaterialClass
 
DX8VertexBufferClassm_vertexBufferTile1
 First vertex buffer.
 
DX8VertexBufferClassm_vertexBufferTile2
 Second vertex buffer.
 
DX8VertexBufferClassm_vertexBufferWater
 Vertex buffer for the water plane.
 
DX8IndexBufferClassm_indexWater
 indices defining a triangle strip for the water on terrain
 
Int m_waterVertexCount
 
WaterRenderObjClassm_waterDrawObject
 
Bool m_drawObjects
 
Bool m_drawWaypoints
 
Bool m_drawPolygonAreas
 
Bool m_drawBoundingBoxes
 
Bool m_drawSightRanges
 
Bool m_drawWeaponRanges
 
Bool m_drawSoundRanges
 
Bool m_drawTestArtHighlight
 
Bool m_drawLetterbox
 
DX8VertexBufferClassm_vertexFeedback
 Vertex buffer for brush feedback.
 
DX8IndexBufferClassm_indexFeedback
 indices defining a triangle strip for the feedback on terrain
 
Int m_feedbackIndexCount
 
Int m_feedbackVertexCount
 
AsciiString m_curMeshModelName
 Model name of m_moldMesh.
 
MeshClassm_moldMesh
 W3D mesh model for the mold.
 
SphereClass m_moldMeshBounds
 Bounding sphere for mold mesh.
 
Render2DClassm_lineRenderer
 
CPoint m_winSize
 
- Protected Attributes inherited from RenderObjClass
unsigned long Bits
 
Matrix3D Transform
 
float ObjectScale
 
unsigned int ObjectColor
 
SphereClass CachedBoundingSphere
 
AABoxClass CachedBoundingBox
 
float NativeScreenSize
 
bool IsTransformIdentity
 
SceneClassScene
 
RenderObjClassContainer
 
void * User_Data
 
RenderHookClassRenderHook
 

Static Protected Attributes

static Bool m_squareFeedback = false
 True for square brush feedback, false for round.
 
static Int m_brushWidth = 3
 Width of brush feedback.
 
static Int m_brushFeatherWidth = 3
 Width of brush feathered feedback.
 
static Bool m_toolWantsFeedback = true
 True to display brush feedback.
 
static Bool m_disableFeedback = false
 True to disable feedback.
 
static Coord3D m_feedbackPoint
 Current brush feedback location.
 
static CPoint m_cellCenter
 Cell to show feedback from.
 
static Bool m_meshFeedback = false
 
static Bool m_rampFeedback = false
 should we be showing feedback for the ramp tool?
 
static Bool m_boundaryFeedback = false
 
static Bool m_ambientSoundFeedback = false
 
static Bool m_dragWaypointFeedback = false
 True for the waypoint tool dragging.
 
static Coord3D m_dragWayStart
 Start drag waypoint feedback.
 
static Coord3D m_dragWayEnd
 End drag waypoint.
 
static Coord3D m_rampStartPoint
 Beginning ramp point.
 
static Coord3D m_rampEndPoint
 End ramp point.
 
static Real m_rampWidth = 0.0f
 

Additional Inherited Members

- Public Types inherited from RenderObjClass
enum  { USER_DATA_MATERIAL_OVERRIDE = 0x01234567 }
 
enum  {
  CLASSID_UNKNOWN = 0xFFFFFFFF , CLASSID_MESH = 0 , CLASSID_HMODEL , CLASSID_DISTLOD ,
  CLASSID_PREDLODGROUP , CLASSID_TILEMAP , CLASSID_IMAGE3D , CLASSID_LINE3D ,
  CLASSID_BITMAP2D , CLASSID_CAMERA , CLASSID_DYNAMESH , CLASSID_DYNASCREENMESH ,
  CLASSID_TEXTDRAW , CLASSID_FOG , CLASSID_LAYERFOG , CLASSID_LIGHT ,
  CLASSID_PARTICLEEMITTER , CLASSID_PARTICLEBUFFER , CLASSID_SCREENPOINTGROUP , CLASSID_VIEWPOINTGROUP ,
  CLASSID_WORLDPOINTGROUP , CLASSID_TEXT2D , CLASSID_TEXT3D , CLASSID_NULL ,
  CLASSID_COLLECTION , CLASSID_FLARE , CLASSID_HLOD , CLASSID_AABOX ,
  CLASSID_OBBOX , CLASSID_SEGLINE , CLASSID_SPHERE , CLASSID_RING ,
  CLASSID_BOUNDFOG , CLASSID_DAZZLE , CLASSID_SOUND , CLASSID_SEGLINETRAIL ,
  CLASSID_LAND , CLASSID_SHDMESH , CLASSID_LAST = 0x0000FFFF
}
 
enum  AnimMode {
  ANIM_MODE_MANUAL = 0 , ANIM_MODE_LOOP , ANIM_MODE_ONCE , ANIM_MODE_LOOP_PINGPONG ,
  ANIM_MODE_LOOP_BACKWARDS , ANIM_MODE_ONCE_BACKWARDS
}
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RenderObjClass
static const float AT_MIN_LOD = FLT_MAX
 
static const float AT_MAX_LOD = -1.0f
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 

Detailed Description

Definition at line 45 of file DrawObject.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MAX_RADIUS 
NUM_FEEDBACK_VERTEX 
NUM_FEEDBACK_INDEX 

Definition at line 113 of file DrawObject.h.

Constructor & Destructor Documentation

◆ DrawObject() [1/2]

DrawObject::DrawObject ( void )

Definition at line 143 of file DrawObject.cpp.

◆ DrawObject() [2/2]

DrawObject::DrawObject ( const DrawObject & src)

Definition at line 179 of file DrawObject.cpp.

◆ ~DrawObject()

DrawObject::~DrawObject ( void )

Definition at line 136 of file DrawObject.cpp.

Member Function Documentation

◆ addCircleToLineRenderer()

void DrawObject::addCircleToLineRenderer ( const Coord3D & center,
Real radius,
Real width,
unsigned long color,
CameraClass * camera )
protected

Draw a "circle" into the m_lineRenderer, e.g. to visualize weapon range, sight range, sound range

Definition at line 1724 of file DrawObject.cpp.

◆ Cast_Ray()

Bool DrawObject::Cast_Ray ( RayCollisionTestClass & raytest)
virtual

Reimplemented from RenderObjClass.

Definition at line 170 of file DrawObject.cpp.

◆ Class_ID()

Int DrawObject::Class_ID ( void ) const
virtual

Reimplemented from RenderObjClass.

Definition at line 210 of file DrawObject.cpp.

◆ Clone()

RenderObjClass * DrawObject::Clone ( void ) const
virtual

Implements RenderObjClass.

Definition at line 215 of file DrawObject.cpp.

◆ disableFeedback()

static void DrawObject::disableFeedback ( void )
inlinestatic

Definition at line 97 of file DrawObject.h.

◆ enableFeedback()

static void DrawObject::enableFeedback ( void )
inlinestatic

Definition at line 98 of file DrawObject.h.

◆ freeMapResources()

Int DrawObject::freeMapResources ( void )

Definition at line 221 of file DrawObject.cpp.

◆ Get_Obj_Space_Bounding_Box()

void DrawObject::Get_Obj_Space_Bounding_Box ( AABoxClass & aabox) const
virtual

Reimplemented from RenderObjClass.

Definition at line 200 of file DrawObject.cpp.

◆ Get_Obj_Space_Bounding_Sphere()

void DrawObject::Get_Obj_Space_Bounding_Sphere ( SphereClass & sphere) const
virtual

Reimplemented from RenderObjClass.

Definition at line 190 of file DrawObject.cpp.

◆ getMeshBounds()

void DrawObject::getMeshBounds ( SphereClass * pSphere)
inline

Definition at line 110 of file DrawObject.h.

◆ initData()

Int DrawObject::initData ( void )

Definition at line 250 of file DrawObject.cpp.

◆ isFeedbackEnabled()

static Bool DrawObject::isFeedbackEnabled ( void )
inlinestatic

Definition at line 99 of file DrawObject.h.

◆ operator=()

DrawObject & DrawObject::operator= ( const DrawObject & that)

Definition at line 184 of file DrawObject.cpp.

◆ peekMesh()

MeshClass * DrawObject::peekMesh ( void )
inline

Definition at line 109 of file DrawObject.h.

◆ Render()

void DrawObject::Render ( RenderInfoClass & rinfo)
virtual

Render draws into the current 3d context.

Todo
  • remove the istree stuff, or get the info from the thing template. jba.

Implements RenderObjClass.

Definition at line 2068 of file DrawObject.cpp.

◆ setBrushFeedbackParms()

static void DrawObject::setBrushFeedbackParms ( Bool square,
Int width,
Int featherWidth )
inlinestatic

Definition at line 94 of file DrawObject.h.

◆ setDoAmbientSoundFeedback()

static void DrawObject::setDoAmbientSoundFeedback ( Bool val)
inlinestatic

Definition at line 92 of file DrawObject.h.

◆ setDoBoundaryFeedback()

static void DrawObject::setDoBoundaryFeedback ( Bool val)
inlinestatic

Definition at line 90 of file DrawObject.h.

◆ setDoBrushFeedback()

static void DrawObject::setDoBrushFeedback ( Bool val)
inlinestatic

Definition at line 87 of file DrawObject.h.

◆ setDoMeshFeedback()

static void DrawObject::setDoMeshFeedback ( Bool val)
inlinestatic

Definition at line 88 of file DrawObject.h.

◆ setDoRampFeedback()

static void DrawObject::setDoRampFeedback ( Bool val)
inlinestatic

Definition at line 89 of file DrawObject.h.

◆ setDrawObjects()

void DrawObject::setDrawObjects ( Bool val,
Bool waypoints,
Bool poly,
Bool bounding,
Bool sight,
Bool weapon,
Bool sound,
Bool testart,
Bool letterbox )
inline

Definition at line 86 of file DrawObject.h.

◆ setFeedbackPos()

void DrawObject::setFeedbackPos ( Coord3D pos)
static

Tells drawobject where the tool is located, so it can draw feedback.

Definition at line 2022 of file DrawObject.cpp.

◆ setRampFeedbackParms()

void DrawObject::setRampFeedbackParms ( const Coord3D * start,
const Coord3D * end,
Real rampWidth )
static

Definition at line 2045 of file DrawObject.cpp.

◆ setWaypointDragFeedback()

void DrawObject::setWaypointDragFeedback ( const Coord3D & start,
const Coord3D & end )
static

Definition at line 122 of file DrawObject.cpp.

◆ stopWaypointDragFeedback()

void DrawObject::stopWaypointDragFeedback ( )
static

Definition at line 129 of file DrawObject.cpp.

◆ updateAmbientSoundVB()

void DrawObject::updateAmbientSoundVB ( void )
protected

Definition at line 742 of file DrawObject.cpp.

◆ updateBoundaryVB()

void DrawObject::updateBoundaryVB ( void )
protected

updateBoundaryVB puts boundaries into m_vertexFeedback.

Definition at line 564 of file DrawObject.cpp.

◆ updateFeedbackVB()

void DrawObject::updateFeedbackVB ( void )
protected

updateFeedbackVB puts brush feedback triangles into m_vertexFeedback.

Definition at line 1183 of file DrawObject.cpp.

◆ updateForWater()

void DrawObject::updateForWater ( void )
protected

updateForWater puts a blue rectangle into the vertex buffer.

Definition at line 1312 of file DrawObject.cpp.

◆ updateMeshVB()

void DrawObject::updateMeshVB ( void )
protected

updateMeshVB puts mesh mold triangles into m_vertexFeedback.

Definition at line 294 of file DrawObject.cpp.

◆ updatePolygonVB()

void DrawObject::updatePolygonVB ( PolygonTrigger * pTrig,
Bool selected,
Bool isOpen )
protected

updateMeshVB puts polygon trigger triangles into m_vertexFeedback.

Definition at line 1083 of file DrawObject.cpp.

◆ updateRampVB()

void DrawObject::updateRampVB ( void )
protected

updateRampVB puts the ramps into a vertex buffer.

Definition at line 448 of file DrawObject.cpp.

◆ updateVB()

Int DrawObject::updateVB ( DX8VertexBufferClass * pVB,
Int color,
Bool doArrow,
Bool doDiamond )
protected

updateVB puts a circle with an arrow into the vertex buffer.

Definition at line 1375 of file DrawObject.cpp.

◆ updateVBWithBoundingBox()

void DrawObject::updateVBWithBoundingBox ( MapObject * pMapObj,
CameraClass * camera )
protected

Draw an object's bounding box into the vertex buffer.

Definition at line 1613 of file DrawObject.cpp.

◆ updateVBWithSightRange()

void DrawObject::updateVBWithSightRange ( MapObject * pMapObj,
CameraClass * camera )
protected

Draw an object's sight range into the vertex buffer.

Definition at line 1758 of file DrawObject.cpp.

◆ updateVBWithSoundRanges()

void DrawObject::updateVBWithSoundRanges ( MapObject * pMapObj,
CameraClass * camera )
protected

Draw an object's min & max sound ranges into the vertex buffer.

Definition at line 1819 of file DrawObject.cpp.

◆ updateVBWithTestArtHighlight()

void DrawObject::updateVBWithTestArtHighlight ( MapObject * pMapObj,
CameraClass * camera )
protected

Draw test art with an X on it.

Definition at line 1943 of file DrawObject.cpp.

◆ updateVBWithWeaponRange()

void DrawObject::updateVBWithWeaponRange ( MapObject * pMapObj,
CameraClass * camera )
protected

Draw an object's weapon range into the vertex buffer.

Definition at line 1780 of file DrawObject.cpp.

◆ updateWaypointVB()

void DrawObject::updateWaypointVB ( void )
protected

updateMeshVB puts waypoint path triangles into m_vertexFeedback.

Definition at line 850 of file DrawObject.cpp.

◆ worldToScreen()

bool DrawObject::worldToScreen ( const Coord3D * w,
ICoord2D * s,
CameraClass * camera )
protected

Transform a 3D Coordinate into 2D screen space

Definition at line 1992 of file DrawObject.cpp.

Member Data Documentation

◆ m_ambientSoundFeedback

Bool DrawObject::m_ambientSoundFeedback = false
staticprotected

Definition at line 161 of file DrawObject.h.

◆ m_boundaryFeedback

Bool DrawObject::m_boundaryFeedback = false
staticprotected

Definition at line 160 of file DrawObject.h.

◆ m_brushFeatherWidth

Int DrawObject::m_brushFeatherWidth = 3
staticprotected

Width of brush feathered feedback.

Definition at line 153 of file DrawObject.h.

◆ m_brushWidth

Int DrawObject::m_brushWidth = 3
staticprotected

Width of brush feedback.

Definition at line 152 of file DrawObject.h.

◆ m_cellCenter

CPoint DrawObject::m_cellCenter
staticprotected

Cell to show feedback from.

Definition at line 157 of file DrawObject.h.

◆ m_curMeshModelName

AsciiString DrawObject::m_curMeshModelName
protected

Model name of m_moldMesh.

Definition at line 143 of file DrawObject.h.

◆ m_disableFeedback

Bool DrawObject::m_disableFeedback = false
staticprotected

True to disable feedback.

Definition at line 155 of file DrawObject.h.

◆ m_dragWayEnd

Coord3D DrawObject::m_dragWayEnd
staticprotected

End drag waypoint.

Definition at line 165 of file DrawObject.h.

◆ m_dragWaypointFeedback

Bool DrawObject::m_dragWaypointFeedback = false
staticprotected

True for the waypoint tool dragging.

Definition at line 163 of file DrawObject.h.

◆ m_dragWayStart

Coord3D DrawObject::m_dragWayStart
staticprotected

Start drag waypoint feedback.

Definition at line 164 of file DrawObject.h.

◆ m_drawBoundingBoxes

Bool DrawObject::m_drawBoundingBoxes
protected

Definition at line 131 of file DrawObject.h.

◆ m_drawLetterbox

Bool DrawObject::m_drawLetterbox
protected

Definition at line 136 of file DrawObject.h.

◆ m_drawObjects

Bool DrawObject::m_drawObjects
protected

Definition at line 128 of file DrawObject.h.

◆ m_drawPolygonAreas

Bool DrawObject::m_drawPolygonAreas
protected

Definition at line 130 of file DrawObject.h.

◆ m_drawSightRanges

Bool DrawObject::m_drawSightRanges
protected

Definition at line 132 of file DrawObject.h.

◆ m_drawSoundRanges

Bool DrawObject::m_drawSoundRanges
protected

Definition at line 134 of file DrawObject.h.

◆ m_drawTestArtHighlight

Bool DrawObject::m_drawTestArtHighlight
protected

Definition at line 135 of file DrawObject.h.

◆ m_drawWaypoints

Bool DrawObject::m_drawWaypoints
protected

Definition at line 129 of file DrawObject.h.

◆ m_drawWeaponRanges

Bool DrawObject::m_drawWeaponRanges
protected

Definition at line 133 of file DrawObject.h.

◆ m_feedbackIndexCount

Int DrawObject::m_feedbackIndexCount
protected

Definition at line 140 of file DrawObject.h.

◆ m_feedbackPoint

Coord3D DrawObject::m_feedbackPoint
staticprotected

Current brush feedback location.

Definition at line 156 of file DrawObject.h.

◆ m_feedbackVertexCount

Int DrawObject::m_feedbackVertexCount
protected

Definition at line 141 of file DrawObject.h.

◆ m_indexBuffer

DX8IndexBufferClass* DrawObject::m_indexBuffer
protected

indices defining a object icon

Definition at line 116 of file DrawObject.h.

◆ m_indexFeedback

DX8IndexBufferClass* DrawObject::m_indexFeedback
protected

indices defining a triangle strip for the feedback on terrain

Definition at line 139 of file DrawObject.h.

◆ m_indexWater

DX8IndexBufferClass* DrawObject::m_indexWater
protected

indices defining a triangle strip for the water on terrain

Definition at line 123 of file DrawObject.h.

◆ m_lineRenderer

Render2DClass* DrawObject::m_lineRenderer
protected

Definition at line 147 of file DrawObject.h.

◆ m_meshFeedback

Bool DrawObject::m_meshFeedback = false
staticprotected

Definition at line 158 of file DrawObject.h.

◆ m_moldMesh

MeshClass* DrawObject::m_moldMesh
protected

W3D mesh model for the mold.

Definition at line 145 of file DrawObject.h.

◆ m_moldMeshBounds

SphereClass DrawObject::m_moldMeshBounds
protected

Bounding sphere for mold mesh.

Definition at line 146 of file DrawObject.h.

◆ m_numTriangles

Int DrawObject::m_numTriangles
protected

Definition at line 114 of file DrawObject.h.

◆ m_rampEndPoint

Coord3D DrawObject::m_rampEndPoint
staticprotected

End ramp point.

Definition at line 168 of file DrawObject.h.

◆ m_rampFeedback

Bool DrawObject::m_rampFeedback = false
staticprotected

should we be showing feedback for the ramp tool?

Definition at line 159 of file DrawObject.h.

◆ m_rampStartPoint

Coord3D DrawObject::m_rampStartPoint
staticprotected

Beginning ramp point.

Definition at line 167 of file DrawObject.h.

◆ m_rampWidth

Real DrawObject::m_rampWidth = 0.0f
staticprotected

Definition at line 169 of file DrawObject.h.

◆ m_shaderClass

ShaderClass DrawObject::m_shaderClass
protected

shader or rendering state for heightmap

Definition at line 117 of file DrawObject.h.

◆ m_squareFeedback

Bool DrawObject::m_squareFeedback = false
staticprotected

True for square brush feedback, false for round.

Definition at line 151 of file DrawObject.h.

◆ m_toolWantsFeedback

Bool DrawObject::m_toolWantsFeedback = true
staticprotected

True to display brush feedback.

Definition at line 154 of file DrawObject.h.

◆ m_vertexBufferTile1

DX8VertexBufferClass* DrawObject::m_vertexBufferTile1
protected

First vertex buffer.

Definition at line 119 of file DrawObject.h.

◆ m_vertexBufferTile2

DX8VertexBufferClass* DrawObject::m_vertexBufferTile2
protected

Second vertex buffer.

Definition at line 120 of file DrawObject.h.

◆ m_vertexBufferWater

DX8VertexBufferClass* DrawObject::m_vertexBufferWater
protected

Vertex buffer for the water plane.

Definition at line 122 of file DrawObject.h.

◆ m_vertexFeedback

DX8VertexBufferClass* DrawObject::m_vertexFeedback
protected

Vertex buffer for brush feedback.

Definition at line 138 of file DrawObject.h.

◆ m_vertexMaterialClass

VertexMaterialClass* DrawObject::m_vertexMaterialClass
protected

Definition at line 118 of file DrawObject.h.

◆ m_waterDrawObject

WaterRenderObjClass* DrawObject::m_waterDrawObject
protected

Definition at line 126 of file DrawObject.h.

◆ m_waterVertexCount

Int DrawObject::m_waterVertexCount
protected

Definition at line 124 of file DrawObject.h.

◆ m_winSize

CPoint DrawObject::m_winSize
protected

Definition at line 148 of file DrawObject.h.


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