14VTK_ABI_NAMESPACE_BEGIN
23 VisRTX::Context* rtx = VisRTX_GetContext();
24 this->model = rtx->CreateModel();
29 for (
Geometry* geometry : this->geometries)
32 this->model->Release();
44 Data *data =
reinterpret_cast<Data *
>(object);
47 int numElements = data->GetNumElements();
49 while(numElements-- > 0)
54 std::set<GeometricModel *> &geoModels = group->geometricModels;
55 for(
auto &m : geoModels)
64 std::set<GeometricModel *> &geoModels = group->geometricModels;
65 for(
auto &m : geoModels)
76 std::set<GeometricModel *> geoModels = group->geometricModels;
77 for(
auto &m : geoModels)
89 auto it = this->geometries.find(geometry);
90 if (it != this->geometries.end())
95 this->model->AddGeometry(geometry->geometry);
96 this->geometries.insert(geometry);
106 auto it = this->geometries.find(geometry);
107 if (it != this->geometries.end())
109 this->model->RemoveGeometry(geometry->geometry);
110 this->geometries.erase(geometry);
119 VisRTX::Model* model =
nullptr;
120 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