Public Member Functions | Protected Attributes | List of all members
ion::Scene::CLineSceneObject Class Reference

#include <CLineSceneObject.h>

Inheritance diagram for ion::Scene::CLineSceneObject:
Inheritance graph
[legend]
Collaboration diagram for ion::Scene::CLineSceneObject:
Collaboration graph
[legend]

Public Member Functions

 CLineSceneObject ()
 
 ~CLineSceneObject ()
 
virtual void Load (CRenderPass *RenderPass)
 
virtual void Draw (CRenderPass *RenderPass)
 
virtual void SetShader (SharedPointer< Graphics::IShader > Shader)
 
virtual void SetFeatureEnabled (Graphics::EDrawFeature const Feature, bool const Enabled)
 
virtual void SetRenderCategory (int const Category)
 
void ResetLines ()
 
void AddLine (vec3f const &A, vec3f const &B, color3f const &Color)
 
void AddStar (vec3f const &P, float const R, color3f const &Color)
 
void AddBox (vec3f const &Center, vec3f const HalfExtent, color3f const &Color)
 
- Public Member Functions inherited from ion::Scene::ISceneObject
virtual ~ISceneObject ()
 Destructor. More...
 
virtual bool IsVisible () const
 Check if visible. More...
 
virtual bool IsLoaded (CRenderPass const *RenderPass) const
 Check if loaded. More...
 
virtual void TriggerReload ()
 Trigger a reload at next draw. More...
 
virtual void SetVisible (bool const isVisible)
 Set visibility. More...
 
virtual void SetDebugName (string const &DebugName)
 Debug name mutator. More...
 
virtual string const & GetDebugName () const
 Debug name accessor. More...
 
virtual STransformation3 const & GetTransformation () const
 Transformation accessor. More...
 
virtual void SetTransformation (glm::mat4 const &transformation)
 Transformation mutator. More...
 
virtual void SetTranslation (vec3f const &translation)
 Translation mutator. More...
 
virtual void SetPosition (vec3f const &translation)
 See SetTranslation (duplicate method) More...
 
virtual void SetRotation (vec3f const &rotation)
 Rotation mutator (euler angles) More...
 
virtual void SetRotation (glm::mat4 const &matrix)
 Rotatiom mutator (rotation matrix) More...
 
virtual void SetScale (vec3f const &scale)
 Scale mutator. More...
 
virtual vec3f GetRotation () const
 Rotation acessor (euler angles) More...
 
virtual vec3f GetTranslation () const
 Translation accessor. More...
 
virtual vec3f GetPosition () const
 Position accessor. More...
 
virtual vec3f GetScale () const
 Scale accessor. More...
 
void SetRotationOrder (ERotationOrder const RotationOrder)
 
ERotationOrder GetRotationOrder () const
 
void SetTransformationOrder (ETransformationOrder const TransformationOrder)
 
ETransformationOrder GetTransformationOrder () const
 

Protected Attributes

vector< uintIndices
 
vector< float > Vertices
 
bool DataNeedsUpload = true
 
size_t IndexCounter = 0
 
int RenderCategory = 0
 
SharedPointer< Graphics::IPipelineStatePipelineState
 
SharedPointer< Graphics::IShaderShader
 
SharedPointer< Graphics::IIndexBufferIndexBuffer
 
SharedPointer< Graphics::IVertexBufferVertexBuffer
 
- Protected Attributes inherited from ion::Scene::ISceneObject
STransformation3 Transformation
 
bool Visible = true
 Whether or not to draw this object. More...
 
map< CRenderPass const *, bool > Loaded
 Whether this object has been loaded yet. More...
 
string DebugName = ""
 

Constructor & Destructor Documentation

ion::Scene::CLineSceneObject::CLineSceneObject ( )
ion::Scene::CLineSceneObject::~CLineSceneObject ( )

Member Function Documentation

void ion::Scene::CLineSceneObject::AddBox ( vec3f const &  Center,
vec3f const  HalfExtent,
color3f const &  Color 
)
void ion::Scene::CLineSceneObject::AddLine ( vec3f const &  A,
vec3f const &  B,
color3f const &  Color 
)
void ion::Scene::CLineSceneObject::AddStar ( vec3f const &  P,
float const  R,
color3f const &  Color 
)
void ion::Scene::CLineSceneObject::Draw ( CRenderPass RenderPass)
virtual
void ion::Scene::CLineSceneObject::Load ( CRenderPass RenderPass)
virtual
void ion::Scene::CLineSceneObject::ResetLines ( )
void ion::Scene::CLineSceneObject::SetFeatureEnabled ( Graphics::EDrawFeature const  Feature,
bool const  Enabled 
)
virtual
void ion::Scene::CLineSceneObject::SetRenderCategory ( int const  Category)
virtual
void ion::Scene::CLineSceneObject::SetShader ( SharedPointer< Graphics::IShader Shader)
virtual

Member Data Documentation

bool ion::Scene::CLineSceneObject::DataNeedsUpload = true
protected
SharedPointer<Graphics::IIndexBuffer> ion::Scene::CLineSceneObject::IndexBuffer
protected
size_t ion::Scene::CLineSceneObject::IndexCounter = 0
protected
vector<uint> ion::Scene::CLineSceneObject::Indices
protected
SharedPointer<Graphics::IPipelineState> ion::Scene::CLineSceneObject::PipelineState
protected
int ion::Scene::CLineSceneObject::RenderCategory = 0
protected
SharedPointer<Graphics::IShader> ion::Scene::CLineSceneObject::Shader
protected
SharedPointer<Graphics::IVertexBuffer> ion::Scene::CLineSceneObject::VertexBuffer
protected
vector<float> ion::Scene::CLineSceneObject::Vertices
protected

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