|
3Depict
|
Draw a vector. More...
#include <drawables.h>


Public Member Functions | |
| DrawVector () | |
| Constructor. More... | |
| virtual | ~DrawVector () |
| Destructor. More... | |
| virtual DrawableObj * | clone () const |
| virtual unsigned int | getType () const |
| void | setDrawArrow (bool wantDraw) |
| Set if we want to draw the arrow or not. More... | |
| void | setColour (float r, float g, float b, float alpha) |
| Sets the color of the point to be drawn. More... | |
| void | draw () const |
| Draws the points. More... | |
| void | setOrigin (const Point3D &) |
| Sets the location of the poitns. More... | |
| void | setVector (const Point3D &) |
| Sets the location of the poitns. More... | |
| void | setEnds (const Point3D &start, const Point3D &end) |
| void | setDoubleEnded (bool wantDoubleEnd=true) |
| Point3D | getVector () const |
| Gets the arrow axis direction. More... | |
| Point3D | getOrigin () const |
| Gets the arrow axis direction. More... | |
| void | setArrowSize (float size) |
| Set the arrowhead size. More... | |
| void | setLineSize (float size) |
| Set the "tail" line size. More... | |
| void | getBoundingBox (BoundCube &b) const |
| void | recomputeParams (const std::vector< Point3D > &vecs, const std::vector< float > &scalars, unsigned int mode) |
| Recompute the internal parameters using the input vector information. More... | |
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 Point3D | getCentroid () const |
| Get the centre of the object. Only valid if object is simple. More... | |
Protected Attributes | |
| Point3D | origin |
| Vector origin. More... | |
| Point3D | vector |
| bool | drawArrow |
| Do we draw the arrow head? More... | |
| float | arrowSize |
| Radius of tail of arrow. More... | |
| bool | scaleArrow |
| Scale arrow head by vector size. More... | |
| bool | doubleEnded |
| Whether to draw the arrow head at both ends. More... | |
| float | r |
| Vector colour (r,g,b,a) range: [0.0f,1.0f]. More... | |
| float | g |
| float | b |
| float | a |
| float | lineSize |
| Size of "tail" line to draw. More... | |
Protected Attributes inherited from DrawableObj | |
| bool | active |
| Is the drawable active? More... | |
| bool | haveChanged |
| Is the object changed since last set? 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 () |
Static Protected Attributes inherited from DrawableObj | |
| 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 |
Draw a vector.
| DrawVector::DrawVector | ( | ) |
|
virtual |
Destructor.
|
virtual |
Reimplemented from DrawableObj.
References DrawVector().
|
virtual |
Draws the points.
Implements DrawableObj.
References arrowSize, b, doubleEnded, drawArrow, drawCone(), g, Point3D::getValueArr(), lineSize, origin, r, Point3D::sqrMag(), and vector.
|
virtual |
Implements DrawableObj.
References origin, BoundCube::setBounds(), and vector.
|
inline |
Gets the arrow axis direction.
Referenced by AnnotateFilter::refresh(), and AnnotateFilter::setPropFromBinding().

|
inlinevirtual |
Implements DrawableObj.
References DRAW_TYPE_VECTOR.
|
inline |
Gets the arrow axis direction.
Referenced by IonClipFilter::refresh(), and AnnotateFilter::refresh().

|
virtual |
Recompute the internal parameters using the input vector information.
Reimplemented from DrawableObj.
References ASSERT, DRAW_VECTOR_BIND_ORIENTATION, DRAW_VECTOR_BIND_ORIGIN, DRAW_VECTOR_BIND_ORIGIN_ONLY, DRAW_VECTOR_BIND_TARGET, origin, and vector.
|
inline |
Set the arrowhead size.
Referenced by BoundingBoxFilter::numBytesForCache(), and AnnotateFilter::refresh().

| void DrawVector::setColour | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | alpha | ||
| ) |
Sets the color of the point to be drawn.
Referenced by BoundingBoxFilter::numBytesForCache(), AnnotateFilter::refresh(), and ClusterAnalysisFilter::refresh().

|
inline |
|
inline |
Set if we want to draw the arrow or not.
Referenced by BoundingBoxFilter::numBytesForCache(), AnnotateFilter::refresh(), and ClusterAnalysisFilter::refresh().

|
inline |
Set the "tail" line size.
Referenced by AnnotateFilter::refresh().

| void DrawVector::setOrigin | ( | const Point3D & | pt | ) |
Sets the location of the poitns.
References origin.
Referenced by BoundingBoxFilter::numBytesForCache(), IonClipFilter::refresh(), AnnotateFilter::refresh(), VoxeliseFilter::refresh(), and ClusterAnalysisFilter::refresh().

| void DrawVector::setVector | ( | const Point3D & | pt | ) |
Sets the location of the poitns.
References vector.
Referenced by BoundingBoxFilter::numBytesForCache(), IonClipFilter::refresh(), AnnotateFilter::refresh(), VoxeliseFilter::refresh(), and ClusterAnalysisFilter::refresh().

|
protected |
Referenced by setColour().
|
protected |
Radius of tail of arrow.
Referenced by draw().
|
protected |
Referenced by draw(), and setColour().
|
protected |
Whether to draw the arrow head at both ends.
Referenced by draw().
|
protected |
Do we draw the arrow head?
Referenced by draw().
|
protected |
Referenced by draw(), and setColour().
|
protected |
Size of "tail" line to draw.
Referenced by draw().
|
protected |
Vector origin.
Referenced by draw(), getBoundingBox(), recomputeParams(), setEnds(), and setOrigin().
|
protected |
Vector colour (r,g,b,a) range: [0.0f,1.0f].
Referenced by draw(), and setColour().
|
protected |
Scale arrow head by vector size.
|
protected |
Referenced by draw(), getBoundingBox(), recomputeParams(), setEnds(), and setVector().
1.8.13