#include <SimplygonSDK.h>
IMaterialCasterSettings is the base interface for material casting settings
Definition at line 9325 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::IMaterialCasterSettings::GetClass |
( |
| ) |
|
|
virtual |
◆ GetDilation()
virtual unsigned int SimplygonSDK::IMaterialCasterSettings::GetDilation |
( |
| ) |
|
|
pure virtual |
Get the Dilation value. Where applicable, such as colors and normals, the caster will fill empty pixels surrounding filled pixels with values mixed from the filled ones. This setting sets how many pixels to fill outside the original filled pixels.
- Returns
- the Dilation value
◆ GetDitherType()
virtual unsigned int SimplygonSDK::IMaterialCasterSettings::GetDitherType |
( |
| ) |
|
|
pure virtual |
The type of dithering to use when creating the output object. Use the DitherPattern enum to choose. Default is SG_DITHERPATTERNS_NO_DITHER.
◆ GetFillMode()
virtual int SimplygonSDK::IMaterialCasterSettings::GetFillMode |
( |
| ) |
|
|
pure virtual |
The fill mode determines what to do with the pixels that remain unfilled after both the casting and dilation has been performed.
- Returns
- Fill mode value
◆ GetMaterialChannel()
virtual rstring SimplygonSDK::IMaterialCasterSettings::GetMaterialChannel |
( |
| ) |
|
|
pure virtual |
Get which material channel to cast. The material channels are defined as SG_MATERIAL_CHANNEL_[ CHANNEL ]. For example, the diffuse channel is SG_MATERIAL_CHANNEL_DIFFUSE.
- Returns
- the current material channel.
◆ GetOutputChannelBitDepth()
virtual unsigned int SimplygonSDK::IMaterialCasterSettings::GetOutputChannelBitDepth |
( |
| ) |
|
|
pure virtual |
Get the OutputBitDepth parameter. This can be either 8 or 16. Please note that this is the bit depth per-channel, so a bit depth of 8 and a OutputChannels value of 3 will result in 8*3 = 24-bit RGB values.
- Returns
- the OutputBitDepth value
◆ GetOutputChannels()
virtual unsigned int SimplygonSDK::IMaterialCasterSettings::GetOutputChannels |
( |
| ) |
|
|
pure virtual |
Get the OutputChannels parameter.
- Returns
- the OutputChannels value
◆ GetUseMultisampling()
virtual bool SimplygonSDK::IMaterialCasterSettings::GetUseMultisampling |
( |
| ) |
|
|
pure virtual |
Enable or disable multisampling
◆ IsA()
virtual bool SimplygonSDK::IMaterialCasterSettings::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
◆ IsClassA()
static bool SimplygonSDK::IMaterialCasterSettings::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IMaterialCasterSettings is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is 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 9346 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a IMaterialCasterSettings pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the IMaterialCasterSettings object, if the cast can be made, and a NULL pointer otherwise
Definition at line 9359 of file SimplygonSDK.h.
◆ SetDilation()
virtual void SimplygonSDK::IMaterialCasterSettings::SetDilation |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Set the Dilation value. Where applicable, such as colors and normals, the caster will fill empty pixels surrounding filled pixels with values mixed from the filled ones. This setting sets how many pixels to fill outside the original filled pixels.
- Parameters
-
value | is the value to which Dilation will be set |
◆ SetDitherType()
virtual void SimplygonSDK::IMaterialCasterSettings::SetDitherType |
( |
unsigned int |
value | ) |
|
|
pure virtual |
The type of dithering to use when creating the output object. Use the DitherPattern enum to choose. Default is SG_DITHERPATTERNS_NO_DITHER.
-
0 (SG_DITHERPATTERNS_NO_DITHER)
-
1 (SG_DITHERPATTERNS_FLOYDSTEINBERG)
-
2 (SG_DITHERPATTERNS_JARVISJUDICENINKE)
-
3 (SG_DITHERPATTERNS_SIERRA)
- Parameters
-
value | is the value of the DitherType to use |
◆ SetFillMode()
virtual void SimplygonSDK::IMaterialCasterSettings::SetFillMode |
( |
int |
value | ) |
|
|
pure virtual |
The fill mode determines what to do with the pixels that remain unfilled after both the casting and dilation has been performed.
Options are:
SG_ATLASFILLMODE_NONE = Do not fill remaining pixels
SG_ATLASFILLMODE_INTERPOLATE = linearly interpolate the closest samples
SG_ATLASFILLMODE_NEARESTNEIGHBOR = use the closest available pixel value without interpolation
- Parameters
-
value | is the mode to which the fill mode will be set |
◆ SetMaterialChannel()
virtual void SimplygonSDK::IMaterialCasterSettings::SetMaterialChannel |
( |
const char * |
value | ) |
|
|
pure virtual |
Set which material channel to cast. The material channels are defined as SG_MATERIAL_CHANNEL_[ CHANNEL ]. For example, the diffuse channel is SG_MATERIAL_CHANNEL_DIFFUSE.
- Parameters
-
value | the desired material channel |
◆ SetOutputChannelBitDepth()
virtual void SimplygonSDK::IMaterialCasterSettings::SetOutputChannelBitDepth |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Set the OutputBitDepth parameter. This can be either 8 or 16. Please note that this is the bit depth per-channel, so a bit depth of 8 and a OutputChannels value of 3 will result in 8*3 = 24-bit RGB values.
- Parameters
-
value | is the value to which OutputBitDepth will be set |
◆ SetOutputChannels()
virtual void SimplygonSDK::IMaterialCasterSettings::SetOutputChannels |
( |
unsigned int |
value | ) |
|
|
pure virtual |
Set the OutputChannels parameter. This can be set to either:
-
1 (Luminance)
-
3 (RGB)
-
4 (RGBA)
- Parameters
-
value | is the value to which OutputChannels will be set |
◆ SetUseMultisampling()
virtual void SimplygonSDK::IMaterialCasterSettings::SetUseMultisampling |
( |
bool |
value | ) |
|
|
pure virtual |
Enable or disable multisampling
- Parameters
-
value | the desired value of the flag |
The documentation for this class was generated from the following file: