| Linderdaum Engine: clVisualGraph Class Reference | ![]() |
#include <VisualGraph.h>
Public Member Functions | |
| clVisualGraph () | |
| virtual | ~clVisualGraph () |
| virtual void | AddDebugGeometry (clScene *S) |
| Add some debug geometry when entring the scene "OnSceneEnter". | |
| virtual void | RemoveDebugGeometry (clScene *S) |
| Remove added debug geometry when entring the scene "OnSceneEnter". | |
| virtual void | RefreshDebugGeometry (clScene *S) |
| TODO : move to VisualObject ? | |
| virtual void | UpdateTransform () |
| TODO : EulerAngleSystem to .NET export. | |
| clGraph * | GetGraph () const |
| void | SetGraph (clGraph *GG) |
| void | SetMaterialName (const std::string &Name, clMaterial **MatPtr) |
| Set the name of material. | |
| std::string | GetMaterialName (clMaterial *MatPtr) const |
| void | SetBeadMaterialName (const std::string &Name) |
| void | SetStickMaterialName (const std::string &Name) |
| void | SetArrowMaterialName (const std::string &Name) |
| std::string | GetBeadMaterialName () const |
| std::string | GetStickMaterialName () const |
| std::string | GetArrowMaterialName () const |
Public Attributes | |
| clGraph * | FGraph |
| float | FBeadRadius |
| float | FStickRadius |
| float | FArrowSize |
| bool | FUseCubes |
| clMaterial * | FBeadMaterial |
| clMaterial * | FStickMaterial |
| clMaterial * | FArrowMaterial |
Private Member Functions | |
| clGeom * | GetGraphGeometry () |
| Get current graph mesh. | |
Private Attributes | |
| clGeom * | FGraphGeometry |
| Internal container of graph mesh. | |
| int | FGraphGeomID |
| The internal ID of graph debug geometry. | |
Visual representation of a graph for debugging purposes.
Specific graphs may also be used in some logical items, like waypoint/accessibility maps
| clVisualGraph::clVisualGraph | ( | ) |
| clVisualGraph::~clVisualGraph | ( | ) | [virtual] |
| void clVisualGraph::AddDebugGeometry | ( | clScene * | S | ) | [virtual] |
Add some debug geometry when entring the scene "OnSceneEnter".
Reimplemented from clVisualObject.
| std::string clVisualGraph::GetArrowMaterialName | ( | ) | const [inline] |
| std::string clVisualGraph::GetBeadMaterialName | ( | ) | const [inline] |
| clGraph* clVisualGraph::GetGraph | ( | ) | const [inline] |
| clGeom * clVisualGraph::GetGraphGeometry | ( | ) | [private] |
Get current graph mesh.
| std::string clVisualGraph::GetMaterialName | ( | clMaterial * | MatPtr | ) | const |
| std::string clVisualGraph::GetStickMaterialName | ( | ) | const [inline] |
| virtual void clVisualGraph::RefreshDebugGeometry | ( | clScene * | S | ) | [inline, virtual] |
TODO : move to VisualObject ?
do anything to rebuild current visual geometry
| void clVisualGraph::RemoveDebugGeometry | ( | clScene * | S | ) | [virtual] |
Remove added debug geometry when entring the scene "OnSceneEnter".
Reimplemented from clVisualObject.
| void clVisualGraph::SetArrowMaterialName | ( | const std::string & | Name | ) | [inline] |
| void clVisualGraph::SetBeadMaterialName | ( | const std::string & | Name | ) | [inline] |
| void clVisualGraph::SetGraph | ( | clGraph * | GG | ) | [inline] |
| void clVisualGraph::SetMaterialName | ( | const std::string & | Name, |
| clMaterial ** | MatPtr | ||
| ) |
Set the name of material.
TODO : what to do with Value/ValueFileName pairs in serialization ? Write specific getters/setters, which resolve the conflits or something else ?
| void clVisualGraph::SetStickMaterialName | ( | const std::string & | Name | ) | [inline] |
| void clVisualGraph::UpdateTransform | ( | ) | [virtual] |
TODO : EulerAngleSystem to .NET export.
Called after something has changed in transformation
Reimplemented from clVisualRenderable.
clGeom* clVisualGraph::FGraphGeometry [private] |
Internal container of graph mesh.
int clVisualGraph::FGraphGeomID [private] |
The internal ID of graph debug geometry.