Itasca C++ Interface
Loading...
Searching...
No Matches
ilabel.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace itasca {
11 class IThing;
12}
13
14namespace itascaxd {
15 using namespace itasca;
16
19 class ILabel {
20 public:
22 inline static const TType type_ = 0x4c815bdd;
24 virtual const IThing *getIThing() const =0;
26 virtual IThing * getIThing()=0;
28 virtual TType getType() const=0;
29
31 virtual DVect getPos() const =0;
33 virtual DVect getEnd() const =0;
35 virtual QString getText() const =0;
37 virtual bool isArrow() const =0;
39 virtual bool isEndDefined() const =0;
40
42 virtual void setPos(const DVect &dv)=0;
44 virtual void setEnd(const DVect &dv)=0;
46 virtual void setEndImplicitly(const DVect &dv)=0;
48 virtual void setArrow(bool b)=0;
50 virtual void setText(const QString &str)=0;
51
54 virtual const ILabel *getNext() const=0;
57 virtual ILabel *getNext()=0;
58 };
59} // namespace itasca
60// EoF
Base class for items that will be stored in containers.
Definition ithing.h:30
Interface to a single label.
Definition ilabel.h:19
virtual bool isArrow() const =0
Returns true is arrow is ON, see setArrow()
virtual IThing * getIThing()=0
Returns a pointer to the IThing interface for a label.
virtual void setEnd(const DVect &dv)=0
Sets the end vertex AND sets boolean endDefined_ to true, see getEnd() and setEndImplicitly.
virtual const ILabel * getNext() const =0
virtual DVect getEnd() const =0
Returns the position where the end of the arrow points to.
virtual DVect getPos() const =0
Returns the label position, set setPos()
static const TType type_
The type identification number for this class, for use in convert_cast() and convert_getcast().
Definition ilabel.h:22
virtual bool isEndDefined() const =0
Returns true is arrow end is defined, see setEnd() and setEndImplicitly()
virtual QString getText() const =0
Returns the label text, see setText()
virtual void setPos(const DVect &dv)=0
Sets the label position, set getPos()
virtual ILabel * getNext()=0
virtual void setArrow(bool b)=0
Sets the arrow property ON, see getArrow()
virtual const IThing * getIThing() const =0
Returns a const pointer to the IThing interface for a label.
virtual void setEndImplicitly(const DVect &dv)=0
Sets the end vertex BUT DO NOT MODIFY endDefined_, see setEnd()
virtual void setText(const QString &str)=0
Set the label text, see getText()
virtual TType getType() const =0
Returns the general type for the ILabel class.
DIM - Provides code portability between 2D and 3D codes.
uint32 TType
class type indicator
Definition basedef.h:46
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:154
namespace Itasca
Definition basememory.cpp:10
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4