VTK  9.1.0
Instance.h
Go to the documentation of this file.
1#pragma once
2
3#include "../Types.h"
4#include "Group.h"
5
6#include <VisRTX.h>
7
8#include <set>
9
10namespace RTW
11{
12 class Instance : public Object
13 {
14 friend class World;
15
16 public:
17 Instance(Group *_group)
19 group(_group)
20 {
21 if(group)
22 group->AddRef();
23 }
24
26 {
27 if(group)
28 group->Release();
29 }
30
31 void Commit() override {}
32
33 private:
34 Group *group;
35 };
36}
@ RTW_INSTANCE
Definition: Types.h:142
void Commit() override
Definition: Instance.h:31
Instance(Group *_group)
Definition: Instance.h:17
void Release()
Definition: Object.h:43
void AddRef()
Definition: Object.h:38
Definition: Backend.h:6