3Depict
|
#include <drawables.h>
Public Member Functions | |
DrawPointLegendOverlay () | |
~DrawPointLegendOverlay () | |
DrawPointLegendOverlay (const DrawPointLegendOverlay &) | |
DrawableObj * | clone () const |
virtual unsigned int | getType () const |
void | draw () const |
Pure virtual function - draw the object. More... | |
void | clear () |
void | addItem (const std::string &s, float r, float g, float b) |
![]() | |
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... | |
![]() | |
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 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) |
![]() | |
bool | canSelect |
Can be selected from openGL viewport interactively? More... | |
bool | wantsLight |
Wants lighting calculations active during render? More... | |
![]() | |
static float | getHighContrastValue () |
![]() | |
float | a |
float | height |
Height and width of overlay (total) More... | |
float | width |
float | position [2] |
![]() | |
bool | active |
Is the drawable active? More... | |
bool | haveChanged |
Is the object changed since last set? More... | |
![]() | |
static const Camera * | curCamera = 0 |
Pointer to current scene camera. More... | |
static float | backgroundR |
static float | backgroundG |
static float | backgroundB |
static TexturePool * | texPool =0 |
static bool | useAlphaBlend |
static unsigned int | winX |
static unsigned int | winY |
DrawPointLegendOverlay::DrawPointLegendOverlay | ( | ) |
References DrawableOverlay::a, and getDefaultFontFile().
Referenced by clone().
DrawPointLegendOverlay::~DrawPointLegendOverlay | ( | ) |
DrawPointLegendOverlay::DrawPointLegendOverlay | ( | const DrawPointLegendOverlay & | oth | ) |
void DrawPointLegendOverlay::addItem | ( | const std::string & | s, |
float | r, | ||
float | g, | ||
float | b | ||
) |
References RGBFloat::v.
Referenced by RangeFileFilter::writePackageState().
void DrawPointLegendOverlay::clear | ( | ) |
|
virtual |
Reimplemented from DrawableObj.
References DrawPointLegendOverlay().
|
virtual |
Pure virtual function - draw the object.
Implements DrawableObj.
References ASSERT, Draw2DCircle::draw(), DrawableObj::getHighContrastValue(), DrawableOverlay::position, Draw2DCircle::setCentre(), Draw2DCircle::setColour(), Draw2DCircle::setRadius(), RGBFloat::v, DrawableObj::winX, and DrawableObj::winY.
|
inlinevirtual |
Implements DrawableObj.
References DRAW_TYPE_LEGENDOVERLAY.