1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
class Representation
: PropertyManager
{
%TypeHeaderCode
#include <BALL/VIEW/KERNEL/representation.h>
#include <list>
using std::list;
%End
public:
enum Properties
{
PROPERTY__ALWAYS_FRONT = 0,
PROPERTY__IS_COORDINATE_SYSTEM
};
Representation() throw();
Representation(ModelType, DrawingPrecision, DrawingMode) throw();
Representation(const Representation&) throw();
~Representation() throw();
void clear() throw();
void setHidden(bool) throw();
bool isHidden() const throw();
void setDrawingPrecision(DrawingPrecision) throw();
DrawingPrecision getDrawingPrecision() const throw();
void setSurfaceDrawingPrecision(float) throw();
float getSurfaceDrawingPrecision() const throw();
DrawingMode getDrawingMode() const throw();
void setDrawingMode(DrawingMode) throw();
Size getTransparency() const throw();
void setTransparency(Size) throw();
list<GeometricObject*>& getGeometricObjects() throw();
void setGeometricObjects(list<GeometricObject*>&) throw();
void insert(GeometricObject& /Transfer/) throw();
PyCompositeList getComposites() const throw();
%MethodCode
PyCompositeList& my_list = *new PyCompositeList;
std::list<const Composite*> org_list = sipCpp->getComposites();
std::list<const Composite*>::iterator it = org_list.begin();
for (; it != org_list.end(); it++)
{
my_list.push_back((Composite*)*it);
}
sipRes = &my_list;
%End
void setComposites(const PyCompositeList&) throw();
%MethodCode
std::list<const Composite*> my_list;
for (PyCompositeList::ConstIterator it = a0->begin(); it != a0->end(); ++it)
{
Composite* obj = *it;
my_list.push_back(obj);
}
sipCpp->setComposites(my_list);
%End
void setComposite(const Composite*) throw();
ModelProcessor* getModelProcessor() throw();
void setModelProcessor(ModelProcessor* /Transfer/) throw();
ColorProcessor* getColorProcessor() throw();
void setColorProcessor(ColorProcessor* /Transfer/) throw();
void setModelType(ModelType) throw();
ModelType getModelType() const throw();
void setColoringMethod(ColoringMethod) throw();
ColoringMethod getColoringMethod() const throw();
void enableModelUpdate(bool);
void enableColoringUpdate(bool);
bool modelUpdateEnabled() const;
bool coloringUpdateEnabled() const;
String getProperties() const throw();
bool isValid() const throw();
void update(bool) throw();
void clearGeometricObjects() throw();
const PreciseTime& getModelBuildTime() const throw();
bool needsUpdate() const throw();
void setNeedsUpdate() throw();
String toString() const throw();
String getName() const;
void setName(const String&);
};
|