20 VisRTX::Context* rtx = VisRTX_GetContext();
21 this->model = rtx->CreateModel();
26 for (
Geometry* geometry : this->geometries)
29 this->model->Release();
44 int numElements =
data->GetNumElements();
46 while(numElements-- > 0)
51 std::set<GeometricModel *> &geoModels = group->geometricModels;
52 for(
auto &m : geoModels)
61 std::set<GeometricModel *> &geoModels = group->geometricModels;
62 for(
auto &m : geoModels)
73 std::set<GeometricModel *> geoModels = group->geometricModels;
74 for(
auto &m : geoModels)
86 auto it = this->geometries.find(geometry);
87 if (it != this->geometries.end())
92 this->model->AddGeometry(geometry->geometry);
93 this->geometries.insert(geometry);
103 auto it = this->geometries.find(geometry);
104 if (it != this->geometries.end())
106 this->model->RemoveGeometry(geometry->geometry);
107 this->geometries.erase(geometry);
116 VisRTX::Model* model =
nullptr;
117 std::set<Geometry*> geometries;
RTWDataType GetDataType() const
virtual void SetObject(const std::string &id, Object *object)
T * GetObject(const std::vector< std::string > &ids, T *defaultValue=nullptr, bool *found=nullptr) const
virtual void RemoveParam(const std::string &id)
void AddGeometry(Geometry *geometry)
void RemoveParam(const std::string &id) override
void RemoveGeometry(Geometry *geometry)
void SetObject(const std::string &id, Object *object) override