25#ifndef _SO_INSTANCE_PARAMETER_H_
26#define _SO_INSTANCE_PARAMETER_H_
28#include <Inventor/SbBasic.h>
29#include <Inventor/nodes/SoNode.h>
31#include <Inventor/nodes/SoShaderParameter.h>
33#include <Inventor/fields/SoSFBufferObject.h>
34#include <Inventor/fields/SoSFInt32.h>
35#include <Inventor/fields/SoSFUInt32.h>
36#include <Inventor/fields/SoSFBool.h>
37#include <Inventor/fields/SoSFEnum.h>
203 static void initClass();
206 static void exitClass();
209 virtual void notify(SoNotList *list);
212 virtual unsigned int getVertexAttribDivisor() {
return divisor.
getValue(); }
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Per-instance par...
PredefinedParameters
List of predefined per-instance attribute names.
@ NUM_PREDEFINED_PARAMETERS
SoSFUInt32 divisor
This field modifies the rate at which values advance during multiple instance rendering.
static SoInstanceParameter * createPredefinedParameter(SoInstanceParameter::PredefinedParameters paramKey, const SoBufferObject *values, uint32_t divisor=1)
Creates an instance parameter object for one of the predefined attribute names.
static SbString getPredefinedParameterName(SoInstanceParameter::PredefinedParameters paramKey)
Returns the predefined instance parameter name for the specified paramKey.
void setPredefinedParameterName(SoInstanceParameter::PredefinedParameters paramKey)
Sets the name field to the string corresponding to the given paramKey.
SoInstanceParameter()
Constructor.
Field containing an unsigned int32_t integer.
uint32_t getValue() const
Returns this field's value.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Vertex shader pa...