3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
DrawAxis Class Reference

#include <drawables.h>

Inheritance diagram for DrawAxis:
Inheritance graph
[legend]
Collaboration diagram for DrawAxis:
Collaboration graph
[legend]

Public Member Functions

 DrawAxis ()
 
 ~DrawAxis ()
 
virtual unsigned int getType () const
 
virtual DrawableObjclone () const
 
void draw () const
 Draw object. More...
 
void setStyle (unsigned int style)
 
void setSize (float newSize)
 
void setPosition (const Point3D &p)
 
void getBoundingBox (BoundCube &b) const
 
- Public Member Functions inherited from DrawableObj
virtual bool isOverlay () const
 Is this an overlay? By default, no. More...
 
 DrawableObj ()
 Constructor. More...
 
virtual bool needsDepthSorting () const
 Do we need to do element based depth sorting? More...
 
virtual bool isExplodable () const
 Can we break this object down into constituent elements? More...
 
virtual void explode (std::vector< DrawableObj *> &simpleObjects)
 Break object down into simple elements. More...
 
virtual bool hasChanged () const
 
void setActive (bool active)
 Set the active state of the object. More...
 
void setInteract (bool canAct)
 Set if user can interact with object, needed for opengl hit testing. More...
 
virtual ~DrawableObj ()
 Drawable destructor. More...
 
virtual void recomputeParams (const std::vector< Point3D > &vecs, const std::vector< float > &scalars, unsigned int mode)
 If we offer any kind of external pointer interface; use this to do a recomputation as needed. This is needed for selection binding behaviour. More...
 
virtual Point3D getCentroid () const
 Get the centre of the object. Only valid if object is simple. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DrawableObj
static void setUseAlphaBlending (bool willBlend)
 
static void setCurCamera (const Camera *c)
 Set the current camera. More...
 
static void setTexPool (TexturePool *t)
 Set the current camera. More...
 
static void clearTexPool ()
 
static void setWindowSize (unsigned int x, unsigned int y)
 
static void setBackgroundColour (float r, float g, float b)
 
- Public Attributes inherited from DrawableObj
bool canSelect
 Can be selected from openGL viewport interactively? More...
 
bool wantsLight
 Wants lighting calculations active during render? More...
 
- Static Protected Member Functions inherited from DrawableObj
static float getHighContrastValue ()
 
- Protected Attributes inherited from DrawableObj
bool active
 Is the drawable active? More...
 
bool haveChanged
 Is the object changed since last set? More...
 
- Static Protected Attributes inherited from DrawableObj
static const CameracurCamera = 0
 Pointer to current scene camera. More...
 
static float backgroundR
 
static float backgroundG
 
static float backgroundB
 
static TexturePooltexPool =0
 
static bool useAlphaBlend
 
static unsigned int winX
 
static unsigned int winY
 

Constructor & Destructor Documentation

◆ DrawAxis()

DrawAxis::DrawAxis ( )

◆ ~DrawAxis()

DrawAxis::~DrawAxis ( )

Member Function Documentation

◆ clone()

DrawableObj * DrawAxis::clone ( ) const
virtual

Reimplemented from DrawableObj.

◆ draw()

void DrawAxis::draw ( ) const
virtual

Draw object.

Implements DrawableObj.

References M_PI.

Referenced by Scene::draw().

Here is the caller graph for this function:

◆ getBoundingBox()

void DrawAxis::getBoundingBox ( BoundCube b) const
virtual

Implements DrawableObj.

References BoundCube::setInvalid().

◆ getType()

virtual unsigned int DrawAxis::getType ( ) const
inlinevirtual

Implements DrawableObj.

References DRAW_TYPE_AXIS.

◆ setPosition()

void DrawAxis::setPosition ( const Point3D p)

Referenced by Scene::draw().

Here is the caller graph for this function:

◆ setSize()

void DrawAxis::setSize ( float  newSize)

Referenced by Scene::draw().

Here is the caller graph for this function:

◆ setStyle()

void DrawAxis::setStyle ( unsigned int  style)

Referenced by Scene::draw().

Here is the caller graph for this function:

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