29 virtual int size()
const = 0;
30 virtual bool setSize(
int,
bool cpdata) = 0;
32 virtual void setCoord(
int,
const float*) = 0;
33 virtual void getCoord(
int,
float*)
const = 0;
35 virtual void setNormal(
int,
const float*) = 0;
36 virtual void getNormal(
int,
float*)
const = 0;
38 virtual void setTCoord(
int,
const float*) = 0;
39 virtual void getTCoord(
int,
float*)
const = 0;
51 virtual int nextID(
int previd)
const = 0;
54 virtual Coord get(
int id)
const = 0;
55 virtual void set(
int id,
const Coord&) = 0;
56 virtual int add(
const Coord&) = 0;
58 virtual void addValue(
int id,
const Coord&) = 0;
60 virtual void remove(
int id) = 0;
62 virtual int size()
const = 0;
76 virtual int nextID(
int previd)
const = 0;
79 virtual int add(
const Coord3&) = 0;
81 virtual Coord3 get(
int id)
const = 0;
83 virtual void set(
int id,
const Coord3&) = 0;
84 virtual void addValue(
int id,
const Coord3&) = 0;
86 virtual void remove(
int id) = 0;
89 virtual int size()
const = 0;
105 virtual int nextID(
int previd)
const;
106 virtual Coord get(
int id)
const;
107 virtual void set(
int id,
const Coord&);
108 virtual int add(
const Coord&);
109 virtual void remove(
int id);
111 virtual void addValue(
int id,
const Coord&);
113 {
return points_.size() - removedids_.size(); }
131 virtual int nextID(
int previd)
const;
132 virtual Coord3 get(
int id)
const;
133 virtual void set(
int id,
const Coord3&);
134 virtual int add(
const Coord3&);
136 virtual void remove(
int id);
137 virtual void addValue(
int id,
const Coord3&);
140 {
return coords_.size() - removedids_.size(); }
#define mRefCountImpl(ClassName)
Macro to setup a class with destructor for reference counting.
Definition: refcount.h:163
#define mExpClass(module)
Definition: commondefs.h:160
Interface for a list of Coord3 with automatically maintained IDs.
Definition: positionlist.h:72
virtual int size() const
Definition: positionlist.h:139
bool isDefined() const
Definition: coord.h:181
Interface for a list of Coords with automatically maintained IDs.
Definition: positionlist.h:47
A cartesian coordinate in 2D space.
Definition: coord.h:25
Base class for vertex attribute list.
Definition: positionlist.h:24
A list of Coord3 where each coord has a unique id.
Definition: positionlist.h:126
virtual int size() const
Definition: positionlist.h:112
A list of Coord where each coord has a unique id.
Definition: positionlist.h:99
#define mRefCountImplNoDestructor(ClassName)
Macro to setup a class without destructor for reference counting.
Definition: refcount.h:167
TypeSet< int > removedids_
Definition: positionlist.h:144
TypeSet< int > removedids_
Definition: positionlist.h:117
A cartesian coordinate in 3D space.
Definition: coord.h:72
TypeSet< Coord > points_
Definition: positionlist.h:118
TypeSet< Coord3 > coords_
Definition: positionlist.h:145