Iray SDK API nvidia_logo_transpbg.gif Up
igroup.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IGROUP_H
8#define MI_NEURAYLIB_IGROUP_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
36class IGroup :
37 public base::Interface_declare<0x3b26d1b4,0x4aa8,0x4876,0xad,0x7c,0x4a,0xaa,0xd9,0x25,0x0d,0xce,
38 neuraylib::IScene_element>
39{
40public:
42 virtual Uint32 get_length() const = 0;
43
51 virtual const char* get_element( Uint32 index) const = 0;
52
74 virtual Sint32 attach( const char* scene_element) = 0;
75
87 virtual Sint32 detach( const char* scene_element) = 0;
88
90 virtual void clear () = 0;
91};
92 // end group mi_neuray_scene_graph_structure
94
95} // namespace neuraylib
96
97} // namespace mi
98
99#endif // MI_NEURAYLIB_IGROUP_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
A group is a container for other scene elements.
Definition: igroup.h:39
virtual void clear()=0
Removes all elements in the array of grouped elements.
virtual Sint32 detach(const char *scene_element)=0
Detaches a scene element from the group.
virtual Sint32 attach(const char *scene_element)=0
Attaches a scene element to the group.
virtual Uint32 get_length() const =0
Returns the number of elements.
virtual const char * get_element(Uint32 index) const =0
Returns the name of the element index.
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
signed int Sint32
32-bit signed integer.
Definition: types.h:46
Base class for all scene elements.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: neuraylib.h:179