#include <DrawObject.h>
Inherits RenderObjClass.
Public Member Functions | |
| DrawObject (void) | |
| DrawObject (const DrawObject &src) | |
| DrawObject & | operator= (const DrawObject &) |
| ~DrawObject (void) | |
| virtual RenderObjClass * | Clone (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) |
| MeshClass * | peekMesh (void) |
| void | getMeshBounds (SphereClass *pSphere) |
Public Member Functions inherited from RenderObjClass | |
| RenderObjClass (void) | |
| RenderObjClass (const RenderObjClass &src) | |
| RenderObjClass & | operator= (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 SceneClass * | Get_Scene (void) |
| virtual SceneClass * | Peek_Scene (void) |
| virtual void | Set_Container (RenderObjClass *con) |
| virtual void | Validate_Transform (void) const |
| RenderObjClass * | Get_Container (void) const |
| virtual void | Set_Transform (const Matrix3D &m) |
| virtual void | Set_Position (const Vector3 &v) |
| const Matrix3D & | Get_Transform (void) const |
| const Matrix3D & | Get_Transform (bool &is_transform_identity) const |
| const Matrix3D & | Get_Transform_No_Validity_Check (void) const |
| const Matrix3D & | Get_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 RenderObjClass * | Get_Sub_Object (int index) const |
| virtual int | Add_Sub_Object (RenderObjClass *subobj) |
| virtual int | Remove_Sub_Object (RenderObjClass *robj) |
| virtual RenderObjClass * | Get_Sub_Object_By_Name (const char *name, int *index=NULL) const |
| virtual int | Get_Num_Sub_Objects_On_Bone (int boneindex) const |
| virtual RenderObjClass * | Get_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 HAnimClass * | Peek_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 Matrix3D & | Get_Bone_Transform (const char *bonename) |
| virtual const Matrix3D & | Get_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 HTreeClass * | Get_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 SphereClass & | Get_Bounding_Sphere (void) const |
| virtual const AABoxClass & | Get_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 RenderObjClass * | Get_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 MaterialInfoClass * | Get_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 PersistFactoryClass & | Get_Factory (void) const |
| virtual bool | Save (ChunkSaveClass &csave) |
| virtual bool | Load (ChunkLoadClass &cload) |
| RenderHookClass * | Get_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) |
| MultiListNodeClass * | Get_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 RefCountClass * | Add_Active_Ref (RefCountClass *obj) |
| static RefCountClass * | Set_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 } |
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 |
Definition at line 45 of file DrawObject.h.
|
protected |
| Enumerator | |
|---|---|
| MAX_RADIUS | |
| NUM_FEEDBACK_VERTEX | |
| NUM_FEEDBACK_INDEX | |
Definition at line 113 of file DrawObject.h.
| DrawObject::DrawObject | ( | void | ) |
Definition at line 143 of file DrawObject.cpp.
| DrawObject::DrawObject | ( | const DrawObject & | src | ) |
Definition at line 179 of file DrawObject.cpp.
| DrawObject::~DrawObject | ( | void | ) |
Definition at line 136 of file DrawObject.cpp.
|
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.
|
virtual |
Reimplemented from RenderObjClass.
Definition at line 170 of file DrawObject.cpp.
|
virtual |
Reimplemented from RenderObjClass.
Definition at line 210 of file DrawObject.cpp.
|
virtual |
Implements RenderObjClass.
Definition at line 215 of file DrawObject.cpp.
|
inlinestatic |
Definition at line 97 of file DrawObject.h.
|
inlinestatic |
Definition at line 98 of file DrawObject.h.
| Int DrawObject::freeMapResources | ( | void | ) |
Definition at line 221 of file DrawObject.cpp.
|
virtual |
Reimplemented from RenderObjClass.
Definition at line 200 of file DrawObject.cpp.
|
virtual |
Reimplemented from RenderObjClass.
Definition at line 190 of file DrawObject.cpp.
|
inline |
Definition at line 110 of file DrawObject.h.
| Int DrawObject::initData | ( | void | ) |
Definition at line 250 of file DrawObject.cpp.
|
inlinestatic |
Definition at line 99 of file DrawObject.h.
| DrawObject & DrawObject::operator= | ( | const DrawObject & | that | ) |
Definition at line 184 of file DrawObject.cpp.
|
inline |
Definition at line 109 of file DrawObject.h.
|
virtual |
Render draws into the current 3d context.
Implements RenderObjClass.
Definition at line 2068 of file DrawObject.cpp.
|
inlinestatic |
Definition at line 94 of file DrawObject.h.
|
inlinestatic |
Definition at line 92 of file DrawObject.h.
|
inlinestatic |
Definition at line 90 of file DrawObject.h.
|
inlinestatic |
Definition at line 87 of file DrawObject.h.
|
inlinestatic |
Definition at line 88 of file DrawObject.h.
|
inlinestatic |
Definition at line 89 of file DrawObject.h.
|
inline |
Definition at line 86 of file DrawObject.h.
|
static |
Tells drawobject where the tool is located, so it can draw feedback.
Definition at line 2022 of file DrawObject.cpp.
|
static |
Definition at line 2045 of file DrawObject.cpp.
Definition at line 122 of file DrawObject.cpp.
|
static |
Definition at line 129 of file DrawObject.cpp.
|
protected |
Definition at line 742 of file DrawObject.cpp.
|
protected |
updateBoundaryVB puts boundaries into m_vertexFeedback.
Definition at line 564 of file DrawObject.cpp.
|
protected |
updateFeedbackVB puts brush feedback triangles into m_vertexFeedback.
Definition at line 1183 of file DrawObject.cpp.
|
protected |
updateForWater puts a blue rectangle into the vertex buffer.
Definition at line 1312 of file DrawObject.cpp.
|
protected |
updateMeshVB puts mesh mold triangles into m_vertexFeedback.
Definition at line 294 of file DrawObject.cpp.
|
protected |
updateMeshVB puts polygon trigger triangles into m_vertexFeedback.
Definition at line 1083 of file DrawObject.cpp.
|
protected |
updateRampVB puts the ramps into a vertex buffer.
Definition at line 448 of file DrawObject.cpp.
|
protected |
updateVB puts a circle with an arrow into the vertex buffer.
Definition at line 1375 of file DrawObject.cpp.
|
protected |
Draw an object's bounding box into the vertex buffer.
Definition at line 1613 of file DrawObject.cpp.
|
protected |
Draw an object's sight range into the vertex buffer.
Definition at line 1758 of file DrawObject.cpp.
|
protected |
Draw an object's min & max sound ranges into the vertex buffer.
Definition at line 1819 of file DrawObject.cpp.
|
protected |
Draw test art with an X on it.
Definition at line 1943 of file DrawObject.cpp.
|
protected |
Draw an object's weapon range into the vertex buffer.
Definition at line 1780 of file DrawObject.cpp.
|
protected |
updateMeshVB puts waypoint path triangles into m_vertexFeedback.
Definition at line 850 of file DrawObject.cpp.
|
protected |
Transform a 3D Coordinate into 2D screen space
Definition at line 1992 of file DrawObject.cpp.
Definition at line 161 of file DrawObject.h.
Definition at line 160 of file DrawObject.h.
|
staticprotected |
Width of brush feathered feedback.
Definition at line 153 of file DrawObject.h.
|
staticprotected |
Width of brush feedback.
Definition at line 152 of file DrawObject.h.
|
staticprotected |
Cell to show feedback from.
Definition at line 157 of file DrawObject.h.
|
protected |
Model name of m_moldMesh.
Definition at line 143 of file DrawObject.h.
True to disable feedback.
Definition at line 155 of file DrawObject.h.
|
staticprotected |
End drag waypoint.
Definition at line 165 of file DrawObject.h.
True for the waypoint tool dragging.
Definition at line 163 of file DrawObject.h.
|
staticprotected |
Start drag waypoint feedback.
Definition at line 164 of file DrawObject.h.
|
protected |
Definition at line 131 of file DrawObject.h.
|
protected |
Definition at line 136 of file DrawObject.h.
|
protected |
Definition at line 128 of file DrawObject.h.
|
protected |
Definition at line 130 of file DrawObject.h.
|
protected |
Definition at line 132 of file DrawObject.h.
|
protected |
Definition at line 134 of file DrawObject.h.
|
protected |
Definition at line 135 of file DrawObject.h.
|
protected |
Definition at line 129 of file DrawObject.h.
|
protected |
Definition at line 133 of file DrawObject.h.
|
protected |
Definition at line 140 of file DrawObject.h.
|
staticprotected |
Current brush feedback location.
Definition at line 156 of file DrawObject.h.
|
protected |
Definition at line 141 of file DrawObject.h.
|
protected |
indices defining a object icon
Definition at line 116 of file DrawObject.h.
|
protected |
indices defining a triangle strip for the feedback on terrain
Definition at line 139 of file DrawObject.h.
|
protected |
indices defining a triangle strip for the water on terrain
Definition at line 123 of file DrawObject.h.
|
protected |
Definition at line 147 of file DrawObject.h.
Definition at line 158 of file DrawObject.h.
|
protected |
W3D mesh model for the mold.
Definition at line 145 of file DrawObject.h.
|
protected |
Bounding sphere for mold mesh.
Definition at line 146 of file DrawObject.h.
|
protected |
Definition at line 114 of file DrawObject.h.
|
staticprotected |
End ramp point.
Definition at line 168 of file DrawObject.h.
should we be showing feedback for the ramp tool?
Definition at line 159 of file DrawObject.h.
|
staticprotected |
Beginning ramp point.
Definition at line 167 of file DrawObject.h.
|
staticprotected |
Definition at line 169 of file DrawObject.h.
|
protected |
shader or rendering state for heightmap
Definition at line 117 of file DrawObject.h.
True for square brush feedback, false for round.
Definition at line 151 of file DrawObject.h.
True to display brush feedback.
Definition at line 154 of file DrawObject.h.
|
protected |
First vertex buffer.
Definition at line 119 of file DrawObject.h.
|
protected |
Second vertex buffer.
Definition at line 120 of file DrawObject.h.
|
protected |
Vertex buffer for the water plane.
Definition at line 122 of file DrawObject.h.
|
protected |
Vertex buffer for brush feedback.
Definition at line 138 of file DrawObject.h.
|
protected |
Definition at line 118 of file DrawObject.h.
|
protected |
Definition at line 126 of file DrawObject.h.
|
protected |
Definition at line 124 of file DrawObject.h.
|
protected |
Definition at line 148 of file DrawObject.h.