Itasca C++ Interface
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
irangeelementinteractive.h
Go to the documentation of this file.
1 #pragma once
2 
9 
10 namespace itascaxd {
13 
21  class IRangeElementPolygonBased { // name = "interactivepolygon"
22  public:
24  inline static const TType type_ = 0x4c815bbe;
25 
27  virtual bool isPerspective() const=0;
28 
30  virtual QVector<DVect> getVertices()const=0;
31  #ifdef THREED
32  virtual DVect getOrigin() const=0;
34  #endif
35 
37  virtual void clearVertices()=0;
41  virtual bool setVertices(const QVector<DVect> &list)=0;
45  virtual bool addVertex(const DVect &vec)=0;
46  #ifdef THREED
47  virtual void setOrigin(const DVect &vec)=0;
50  virtual void setProjectionType(bool b)=0;
51  #endif
52 
54  virtual IRangeElement *getIRangeElement()=0;
55 
56  //SIGNALS
58  virtual void verticesChanged()=0;
59  };
60 } // namespace itascaxd
61 // EoF
Interface to a filter element, which is a member of a IRange.
virtual void clearVertices()=0
clears the list of vertices that delimitate a polygonal shape in 3D "real" coordinates
virtual void verticesChanged()=0
Signal emitted when vertices have changed.
virtual bool isPerspective() const =0
returns true if the projection mode was in perspective when the filter element was created
Interface to a filter element, which is a member of a IRange..
Definition: irangeelement.h:18
unsigned int TType
class type indicator
Definition: basedef.h:41
virtual IRangeElement * getIRangeElement()=0
Returns a pointer to the IRangeElement object.
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition: irangeelementinteractive.h:24
virtual bool addVertex(const DVect &vec)=0
Interface for accessing informations in the three drawable "interactive" filter elements in kernel/sr...
Definition: irangeelementinteractive.h:21
Itasca Library standard namespace, specific to 2D or 3D.
Definition: icontactmodule.h:4
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition: dim.h:145
virtual QVector< DVect > getVertices() const =0
returns the list of vertices that delimitate a polygonal shape in 3D "real" coordinates
virtual bool setVertices(const QVector< DVect > &list)=0