16 #ifndef SURGSIM_GRAPHICS_UNIFORM_H
17 #define SURGSIM_GRAPHICS_UNIFORM_H
41 virtual void set(
const T& value) = 0;
44 virtual const T&
get()
const = 0;
54 virtual size_t getNumElements()
const = 0;
59 virtual void setElement(
size_t index,
const T& value) = 0;
63 virtual void set(
const std::vector<T>& value) = 0;
68 virtual typename std::vector<T>::const_reference getElement(
size_t index)
const = 0;
72 virtual const std::vector<T>&
get()
const = 0;
79 #endif // SURGSIM_GRAPHICS_UNIFORM_H
Definition: DriveElementFromInputBehavior.cpp:27
#define SURGSIM_ADD_RW_PROPERTY(class, type, property, getter, setter)
A macro to register getter and setter for a property that is readable and writeable, order of getter and setter agrees with 'RW'.
Definition: Accessible.h:199