Itasca C++ Interface
Loading...
Searching...
No Matches
ilabellist.h
Go to the documentation of this file.
1#pragma once
2
9
10namespace itasca {
11 class IContainer;
12}
13
14namespace itascaxd {
15 using namespace itasca;
16
17 class ILabel;
18
21 class ILabelList {
22 public:
24 virtual const IContainer *getIContainer() const=0;
27
29 virtual const ILabel *lookupWithName(QString name) const=0;
31 virtual ILabel * lookupWithName(QString name)=0;
32
34 virtual const ILabel *getFirst() const=0;
36 virtual ILabel *getFirst()=0;
37
40 virtual uint32 getNotice() const=0;
41
43 virtual uint32 getLabelGeneralType() const=0;
46 virtual ILabel *findOrCreateWithName(QString name)=0;
48 virtual ILabel *create(const DVect &pos,QString name=QString())=0;
49
51 virtual TType getType() const=0;
52 };
53} // namespace itascaxd
54// EoF
Interface for containers of IThings.
Definition icontainer.h:21
Interface to a single label.
Definition ilabel.h:19
Interface to the list of all labels in the system.
Definition ilabellist.h:21
virtual const IContainer * getIContainer() const =0
returns a constant pointer to the IContainer class representing a list of labels.
virtual ILabel * getFirst()=0
Returns a pointer to the first ILabel in the list. Use ILabel::getNext() to iterate through the entir...
virtual ILabel * lookupWithName(QString name)=0
Returns a pointer to a ITable() with id given, or 0 if no match is found.
virtual IContainer * getIContainer()=0
returns a pointer to the IContainer class representing a list of labels.
virtual ILabel * create(const DVect &pos, QString name=QString())=0
Creates the label and adds it to the label list. Sets the position of the label.
virtual const ILabel * getFirst() const =0
Returns a const pointer to the first ILabel in the list. Use ILabel::getNext() to iterate through the...
virtual uint32 getNotice() const =0
virtual ILabel * findOrCreateWithName(QString name)=0
virtual const ILabel * lookupWithName(QString name) const =0
Returns a const pointer to a ITable() with id given, or 0 if no match is found.
virtual uint32 getLabelGeneralType() const =0
Returns the general type of an ILabel.
virtual TType getType() const =0
Return the type of a label.
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