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

Draw a progress (segments with completion) overlay. More...

#include <drawables.h>

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

Public Member Functions

 DrawProgressCircleOverlay ()
 
 ~DrawProgressCircleOverlay ()
 
void setCurFilter (unsigned int v)
 
void setMaxStep (unsigned int v)
 
void setNumFilters (unsigned int v)
 
void setProgress (unsigned int newProg)
 
void setStep (unsigned int v)
 
void reset ()
 
virtual unsigned int getType () const
 
void draw () const
 Draw object. More...
 
- Public Member Functions inherited from DrawAnimatedOverlay
 DrawAnimatedOverlay ()
 
 ~DrawAnimatedOverlay ()
 
void setRepeatTime (float timeV)
 
void setShowDelayTime (float showDelayTime)
 
void setFadeInTime (float fadeInTime)
 
bool setTexture (const std::vector< std::string > &textureFiles, float timeRepeat=1.0f)
 Set the texture by name. More...
 
void resetTime ()
 
bool isOK () const
 
- Public Member Functions inherited from DrawableOverlay
 DrawableOverlay ()
 
virtual ~DrawableOverlay ()=0
 
void setAlpha (float alpha)
 
void setSize (float widthN, float heightN)
 
void setSize (float size)
 
void setPosition (float newTLX, float newTLY)
 
void getBoundingBox (BoundCube &b) const
 
bool isOverlay () const
 This is an overlay. More...
 
- Public Member Functions inherited from DrawableObj
 DrawableObj ()
 Constructor. More...
 
virtual DrawableObjclone () const
 
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...
 

Static Public Member Functions

static void setWindowSize (unsigned int x, unsigned int y)
 
- 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)
 

Additional Inherited Members

- Public Attributes inherited from DrawableObj
bool canSelect
 Can be selected from openGL viewport interactively? More...
 
bool wantsLight
 Wants lighting calculations active during render? More...
 
- Protected Member Functions inherited from DrawAnimatedOverlay
void getAnimationStat (float &alpha, float &deltaTime) const
 
- Static Protected Member Functions inherited from DrawableObj
static float getHighContrastValue ()
 
- Protected Attributes inherited from DrawableOverlay
float a
 
float height
 Height and width of overlay (total) More...
 
float width
 
float position [2]
 
- 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
 

Detailed Description

Draw a progress (segments with completion) overlay.

Constructor & Destructor Documentation

◆ DrawProgressCircleOverlay()

DrawProgressCircleOverlay::DrawProgressCircleOverlay ( )

◆ ~DrawProgressCircleOverlay()

DrawProgressCircleOverlay::~DrawProgressCircleOverlay ( )

Member Function Documentation

◆ draw()

void DrawProgressCircleOverlay::draw ( ) const
virtual

Draw object.

Reimplemented from DrawAnimatedOverlay.

References ASSERT, DrawableObj::getHighContrastValue(), DrawableOverlay::height, M_PI, DrawableOverlay::position, DrawableOverlay::width, DrawableObj::winX, and DrawableObj::winY.

Referenced by Scene::drawOverlays().

Here is the caller graph for this function:

◆ getType()

virtual unsigned int DrawProgressCircleOverlay::getType ( ) const
inlinevirtual

Reimplemented from DrawAnimatedOverlay.

References DRAW_TYPE_PROGRESSCIRCLE_OVERLAY.

◆ reset()

void DrawProgressCircleOverlay::reset ( )

Referenced by Scene::resetProgressAnim().

Here is the caller graph for this function:

◆ setCurFilter()

void DrawProgressCircleOverlay::setCurFilter ( unsigned int  v)
inline

References RGBFloat::v.

◆ setMaxStep()

void DrawProgressCircleOverlay::setMaxStep ( unsigned int  v)
inline

References RGBFloat::v.

◆ setNumFilters()

void DrawProgressCircleOverlay::setNumFilters ( unsigned int  v)
inline

References RGBFloat::v.

◆ setProgress()

void DrawProgressCircleOverlay::setProgress ( unsigned int  newProg)
inline

References ASSERT.

◆ setStep()

void DrawProgressCircleOverlay::setStep ( unsigned int  v)
inline

References ASSERT, and RGBFloat::v.

◆ setWindowSize()

static void DrawProgressCircleOverlay::setWindowSize ( unsigned int  x,
unsigned int  y 
)
inlinestatic

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