Itasca C++ Interface
|
Interface for accessing informations in the three drawable "interactive" filter elements in kernel/src/rangeelementinteractive.h (polygon,rectangle,ellipse) More...
#include <irangeelementinteractive.h>
Public Member Functions | |
virtual bool | isPerspective () const =0 |
returns true if the projection mode was in perspective when the filter element was created | |
virtual QVector< DVect > | getVertices () const =0 |
returns the list of vertices that delimitate a polygonal shape in 3D "real" coordinates | |
virtual void | clearVertices ()=0 |
clears the list of vertices that delimitate a polygonal shape in 3D "real" coordinates | |
virtual bool | setVertices (const QVector< DVect > &list)=0 |
virtual bool | addVertex (const DVect &vec)=0 |
virtual IRangeElement * | getIRangeElement ()=0 |
Returns a pointer to the IRangeElement object. | |
Public Attributes | |
shared::Signal | verticesChanged |
Static Public Attributes | |
static const TType | type_ = 0x4c815bbe |
The type identification number for this class, for use in convert_cast() and convert_getcast(). | |
Interface for accessing informations in the three drawable "interactive" filter elements in kernel/src/rangeelementinteractive.h (polygon,rectangle,ellipse)
These elements are defined by a list of vertices (DVect3), a projection mode (parallel/perspective), and, if the projection is in perspective mode, by an origin point (DVect3).
This projection mode correspond to the one which was active WHEN THE RANGE WAS CREATED.
Therefore, if in perspective projection, the shape of the filter element region is a cone with its top at the origin point.
Note - an ellipse is stored internally via its circumscribed rectangle
|
pure virtual |
Returns true and adds a new vertex to the list of vertices (push_back) if this new vertex is in the plane defined by previous vertices in the list.
Returns false without adding the vertex if not.
|
pure virtual |
Checks internally if list's vertices define a plane. Returns false without any copy if not, otherwise returns true and sets (by copy) the list of vertices that delimitate a polygonal shape in 3D "real" coordinates