![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
virtual const char * | GetClass () |
virtual CountedPointer< IDisplacementCasterSettings > | GetDisplacementCasterSettings ()=0 |
virtual real | GetDistanceScaling ()=0 |
virtual bool | GetGenerateScalarDisplacement ()=0 |
virtual bool | GetGenerateTangentSpaceDisplacement ()=0 |
virtual rid | GetNormalMapTextureLevel ()=0 |
virtual bool | IsA (const char *type) const |
virtual void | SetDistanceScaling (real DistanceScaling)=0 |
virtual void | SetGenerateScalarDisplacement (bool GenerateScalarDisplacement)=0 |
virtual void | SetGenerateTangentSpaceDisplacement (bool GenerateTangentSpaceDisplacement)=0 |
virtual void | SetNormalMapTextureLevel (rid NormalMapTextureLevel)=0 |
![]() | |
virtual SGDEPRECATED void | CastMaterials ()=0 |
virtual CountedPointer< IMaterialCasterSettings > | GetCasterSettings ()=0 |
virtual rid | GetDestMaterialId ()=0 |
virtual unsigned int | GetDilation ()=0 |
virtual unsigned int | GetDitherType ()=0 |
virtual unsigned int | GetFillMode ()=0 |
virtual CountedPointer< IMappingImage > | GetMappingImage ()=0 |
virtual unsigned int | GetOutputChannelBitDepth ()=0 |
virtual unsigned int | GetOutputChannels ()=0 |
virtual rstring | GetOutputFilePath ()=0 |
virtual CountedPointer< IImageData > | GetOutputImage ()=0 |
virtual CountedPointer< IMaterialTable > | GetSourceMaterials ()=0 |
virtual CountedPointer< ITextureTable > | GetSourceTextures ()=0 |
virtual bool | GetUseMultisampling ()=0 |
virtual void | SetDestMaterialId (rid value)=0 |
virtual void | SetDilation (unsigned int Dilation)=0 |
virtual void | SetDitherType (unsigned int DitherType)=0 |
virtual void | SetFillMode (unsigned int FillMode)=0 |
virtual void | SetMappingImage (IMappingImage *value)=0 |
virtual void | SetOutputChannelBitDepth (unsigned int OutputChannelBitDepth)=0 |
virtual void | SetOutputChannels (unsigned int OutputChannels)=0 |
virtual void | SetOutputFilePath (const char *value)=0 |
virtual void | SetOutputImage (IImageData *value)=0 |
virtual void | SetSourceMaterials (IMaterialTable *value)=0 |
virtual void | SetSourceTextures (ITextureTable *value)=0 |
virtual void | SetUseMultisampling (bool UseMultisampling)=0 |
![]() | |
virtual void | Clear ()=0 |
virtual real | GetPercentDone ()=0 |
virtual void | RunProcessing ()=0 |
![]() | |
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 IDisplacementCaster * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IMaterialCaster * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IProcessingObject * | SafeCast (IObject *ptr) |
![]() | |
static bool | IsClassA (const char *type) |
static IObject * | SafeCast (IObject *ptr) |
IDisplacementCaster is used to store the delta-values between the original and processed geometries. The values are divided by a scaling value, and clamped into the -1 -> 1 range before being stored into an image.
Definition at line 10383 of file SimplygonSDK.h.
|
virtual |
GetClass returns the name of the class of the object.
Reimplemented from SimplygonSDK::IMaterialCaster.
|
pure virtual |
Get the displacement caster settings object
|
pure virtual |
Get the DistanceScaling value. All the delta values are divided by this value before storing them into an image.
|
pure virtual |
Get the GenerateScalarDisplacement value. If set to true, the size of the displacement vectors' components in the direction of the interpolated normal are stored in the displacement map, instead of the displacement vectors.
|
pure virtual |
Get the GenerateTangentSpaceDisplacement value. If set, the displacement vectors are transformed into the destination objects' tangent space
|
pure virtual |
Get the texture coordinate level to use for the tangent space displacement vectors.
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the object is, or is a descendant of |
Reimplemented from SimplygonSDK::IMaterialCaster.
|
inlinestatic |
The IsClassA function returns true if IDisplacementCaster is a or is a descendant of the class named as the type parameter
type | is the name of the class to check if the class is, or is a descendant of |
Definition at line 10404 of file SimplygonSDK.h.
|
inlinestatic |
SafeCast makes sure the pointer is of a class that can be cast into a IDisplacementCaster pointer, and if this is possible, returns the cast pointer.
ptr | is the pointer to be cast into a IDisplacementCaster pointer |
Definition at line 10417 of file SimplygonSDK.h.
|
pure virtual |
Set the DistanceScaling value. All the delta values are divided by this value before storing them into an image.
DistanceScaling | the scale factor |
|
pure virtual |
Set the GenerateScalarDisplacement value. If set to true, the size of the displacement vectors' components in the direction of the interpolated normal are stored in the displacement map, instead of the displacement vectors.
GenerateScalarDisplacement | the desired value |
|
pure virtual |
Set the GenerateTangentSpaceDisplacement value. If set, the displacement vectors are transformed into the destination objects' tangent space
GenerateTangentSpaceDisplacement | the desired value |
|
pure virtual |
Set the texture coordinate level to use for the tangent space displacement vectors.
NormalMapTextureLevel | the TexCoord level index to use |