Simplygon C++ API  8.3.35800.0
SimplygonSDK::IShadingNode Class Referenceabstract

#include <SimplygonSDK.h>

Inheritance diagram for SimplygonSDK::IShadingNode:
SimplygonSDK::IObject SimplygonSDK::IShadingColorNode SimplygonSDK::IShadingFilterNode SimplygonSDK::IShadingTextureNode SimplygonSDK::IShadingVertexColorNode SimplygonSDK::IShadingAddNode SimplygonSDK::IShadingClampNode SimplygonSDK::IShadingCosNode SimplygonSDK::IShadingCross3Node SimplygonSDK::IShadingCustomNode SimplygonSDK::IShadingDivideNode SimplygonSDK::IShadingDot3Node SimplygonSDK::IShadingEqualNode SimplygonSDK::IShadingGreaterThanNode SimplygonSDK::IShadingInterpolateNode SimplygonSDK::IShadingLayeredBlendNode SimplygonSDK::IShadingLessThanNode SimplygonSDK::IShadingMaxNode SimplygonSDK::IShadingMinNode SimplygonSDK::IShadingMultiplyNode SimplygonSDK::IShadingNormalize3Node SimplygonSDK::IShadingNotEqualNode SimplygonSDK::IShadingPowNode SimplygonSDK::IShadingSinNode SimplygonSDK::IShadingSqrtNode SimplygonSDK::IShadingStepNode SimplygonSDK::IShadingSubtractNode SimplygonSDK::IShadingSwizzlingNode

Public Member Functions

virtual const char * GetClass ()
 
virtual real GetDefaultParameterAlpha (rid parameter_id)=0
 
virtual real GetDefaultParameterBlue (rid parameter_id)=0
 
virtual real GetDefaultParameterGreen (rid parameter_id)=0
 
virtual real GetDefaultParameterRed (rid parameter_id)=0
 
virtual unsigned int GetParameterCount ()=0
 
virtual rstring GetParameterName (rid parameter_id)=0
 
virtual bool IsA (const char *type) const
 
virtual void SetDefaultParameter (rid parameter_id, real r, real g, real b, real a)=0
 
- Public Member Functions inherited from SimplygonSDK::IObject
virtual rid AddObserver (robserver *Observer, rid EventId)=0
 
virtual void AddRef ()=0
 
virtual rstring GetName ()=0
 
virtual void * GetUserComponentArea (rid userid)=0
 
virtual void PrintInfo ()=0
 
virtual void Release ()=0
 
virtual void RemoveObserver (rid ObserverId)=0
 
virtual void SetName (const char *Name)=0
 

Static Public Member Functions

static bool IsClassA (const char *type)
 
static IShadingNodeSafeCast (IObject *ptr)
 
- Static Public Member Functions inherited from SimplygonSDK::IObject
static bool IsClassA (const char *type)
 
static IObjectSafeCast (IObject *ptr)
 

Detailed Description

IShadingNode is the parent of all nodes in a shading network.

Definition at line 15942 of file SimplygonSDK.h.

Member Function Documentation

◆ GetClass()

◆ GetDefaultParameterAlpha()

virtual real SimplygonSDK::IShadingNode::GetDefaultParameterAlpha ( rid  parameter_id)
pure virtual

Get the default parameter values

Parameters
parameter_idis the id of the input to be fetched.
Returns
the Alpha default parameter value

◆ GetDefaultParameterBlue()

virtual real SimplygonSDK::IShadingNode::GetDefaultParameterBlue ( rid  parameter_id)
pure virtual

Get the default parameter values

Parameters
parameter_idis the id of the input to be fetched.
Returns
the Blue default parameter value

◆ GetDefaultParameterGreen()

virtual real SimplygonSDK::IShadingNode::GetDefaultParameterGreen ( rid  parameter_id)
pure virtual

Get the default parameter values

Parameters
parameter_idis the id of the input to be fetched.
Returns
the Green default parameter value

◆ GetDefaultParameterRed()

virtual real SimplygonSDK::IShadingNode::GetDefaultParameterRed ( rid  parameter_id)
pure virtual

Get the default parameter values

Parameters
parameter_idis the id of the input to be fetched.
Returns
the Red default parameter value

◆ GetParameterCount()

virtual unsigned int SimplygonSDK::IShadingNode::GetParameterCount ( )
pure virtual

Get the input count

Returns
the input count

◆ GetParameterName()

virtual rstring SimplygonSDK::IShadingNode::GetParameterName ( rid  parameter_id)
pure virtual

Get the name of a parameter

Parameters
parameter_idis the id of the input to fetch the name of.
Returns
the name of the parameter

◆ IsA()

◆ IsClassA()

static bool SimplygonSDK::IShadingNode::IsClassA ( const char *  type)
inlinestatic

The IsClassA function returns true if IShadingNode is a or is a descendant of the class named as the type parameter

Parameters
typeis the name of the class to check if the class is, or is a descendant of
Returns
true if the class is of the specified class, false if not

Definition at line 15963 of file SimplygonSDK.h.

◆ SafeCast()

static IShadingNode* SimplygonSDK::IShadingNode::SafeCast ( IObject ptr)
inlinestatic

SafeCast makes sure the pointer is of a class that can be cast into a IShadingNode pointer, and if this is possible, returns the cast pointer.

Parameters
ptris the pointer to be cast into a IShadingNode pointer
Returns
a pointer to the IShadingNode object, if the cast can be made, and a NULL pointer otherwise

Definition at line 15976 of file SimplygonSDK.h.

◆ SetDefaultParameter()

virtual void SimplygonSDK::IShadingNode::SetDefaultParameter ( rid  parameter_id,
real  r,
real  g,
real  b,
real  a 
)
pure virtual

Set the default parameter values

Parameters
parameter_idis the id of the input to be set.
ris the value of red to which the default input will be set.
gis the value of green to which the default input will be set.
bis the value of blue to which the default input will be set.
ais the value of alpha to which the default input will be set.

The documentation for this class was generated from the following file: