20 #ifndef _OPENMBV_DYNAMICINDEXEDFACESET_H
21 #define _OPENMBV_DYNAMICINDEXEDFACESET_H
23 #include <openmbvcppinterface/body.h>
25 #include <hdf5serie/vectorserie.h>
33 double minimalColorValue, maximalColorValue;
34 std::vector<double> diffuseColor;
36 std::vector<Index> indices;
41 xercesc::DOMElement *writeXMLFile(xercesc::DOMNode *parent);
52 const std::vector<Index>& getIndices() {
return indices; }
59 minimalColorValue=min;
62 double getMinimalColorValue() {
return minimalColorValue; }
68 maximalColorValue=max;
71 double getMaximalColorValue() {
return maximalColorValue; }
77 if(hsv.size()!=3)
throw std::runtime_error(
"the dimension does not match");
82 std::vector<double> hsv;
89 std::vector<double> getDiffuseColor() {
return diffuseColor; }
96 double getTransparency() {
return transparency; }
101 void setIndices(
const std::vector<Index> &indices_) { indices = indices_; }
106 if(data==0)
throw std::runtime_error(
"can not append data to an environment object");
111 std::vector<double>
getRow(
int i) {
return data?data->
getRow(i):std::vector<double>(1+3*numvp); }
void setDiffuseColor(const std::vector< double > &hsv)
Definition: dynamicindexedfaceset.h:76
std::vector< double > getRow(int i)
Definition: dynamicindexedfaceset.h:111
int getRows()
Definition: dynamicindexedfaceset.h:110
void createHDF5File()
Definition: dynamicindexedfaceset.cc:58
Definition: objectfactory.h:36
int getNumberOfVertexPositions() const
Definition: dynamicindexedfaceset.h:51
void setMinimalColorValue(double min)
Definition: dynamicindexedfaceset.h:58
void setMaximalColorValue(double max)
Definition: dynamicindexedfaceset.h:67
std::string getClassName()
Definition: dynamicindexedfaceset.h:47
virtual void initializeUsingXML(xercesc::DOMElement *element)
Definition: dynamicindexedfaceset.cc:88
void setTransparency(double t)
Definition: dynamicindexedfaceset.h:92
void getRow(const int row, size_t size, T data[])
void append(const T data[], size_t size)
Definition: dynamicindexedfaceset.h:30
void append(const T &row)
Definition: dynamicindexedfaceset.h:105
void setNumberOfVertexPositions(int num)
Definition: dynamicindexedfaceset.h:100