PaintLayerSampler Class Reference

PaintLayerSampler Class Reference

#include <MapExtractorAPI.h>

Class Description

This class represents the paint layer sampler. This sampler simply samples a paint layer over the source surface.

+ Examples:

Definition at line 252 of file MapExtractorAPI.h.

+ Inheritance diagram for PaintLayerSampler:

Public Member Functions

QString ChannelName (void) const
 Returns the name of the paint channel to be scanned. More...
 
void SetChannelName (const QString &sChannelName)
 Sets the name of the paint channel to be scanned. More...
 
int LayerIndex (void) const
 Returns the index of the layer/layer group inside the paint channel to be scanned. More...
 
void SetLayerIndex (int iIndex)
 Sets the index of the layer/layer group inside the paint channel to be scanned. More...
 
int LayerInGroupIndex (void) const
 Return the index of the layer inside the layer group to be scanned, -1 means it's not controlled by a group. More...
 
void SetLayerInGroupIndex (int iIndex)
 Sets the index of the layer inside the layer group to be scanned, -1 means it's not controlled by a group. More...
 
- Public Member Functions inherited from Sampler
 Sampler (mapextractionmodules::Sampler *p)
 Create a sampler class for an existing sampler module. More...
 
bool IsEnabled (void) const
 Returns true, if the sampler is enabled. Only enabled samplers are used during extraction. More...
 
void SetEnabled (bool bEnable)
 Turns a sampler on or off. Each sampler is disabled by default. At least one sampler has to be enalbed, otherwise the extraction does nothing. More...
 
enum VertexAction VertexAction (void) const
 Returns the current vertex action. This is only valid if utilizer type is set to vertex. More...
 
void SetVertexAction (enum VertexAction eAction)
 Sets the current vertex action. This is the action Mudbox performs on each vertex of the target mesh after the extraction. This is only valid if utilizer type is set to vertex. More...
 
QString FileName (void) const
 Return the name of the file(s) produced by mudbox after map extraction. This is only valid if utilizer type is set to texture or ptex. More...
 
void SetFileName (const QString &sFileName)
 Sets the name of the file(s) produced by mudbox after map extraction. More...
 
bool UseTmpFile (void) const
 Returns true, if the image files are saved into a tmp location. More...
 
void SetUseTmpFile (bool bTmp)
 When bTmp is true, the filename will be ignored, and a temporary file name and location will be used. More...
 
enum mudbox::Image::Format PixelFormat (void) const
 Return the pixel format which will be used in the saved file. This is only valid if utilizer type is set to texture. More...
 
void SetPixelFormat (enum mudbox::Image::Format eFormat)
 Sets the pixel format which will be used in the saved file. This is only valid if utilizer type is set to texture. More...
 
bool Preview (void) const
 Return true if Mudbox should use the result texture as a preview in rendering. This is only valid if utilizer type is set to texture. More...
 
void SetPreview (bool bEnable)
 Turns on/off preview in rendering after extraction. This is only valid if utilizer type is set to texture. More...
 
Space VertexMoveSpace (void) const
 Returns the space what the vertex move action uses. This is only valid if utilizer type is set to vertex, and vertex action is set to move. Only the following spaces are used: world, object, tangent. More...
 
void SetVertexMoveSpace (Space eSpace)
 Sets the space what the vertex move action uses. This is only valid if utilizer type is set to vertex, and vertex action is set to move. Only the following spaces are used: world, object, tangent. More...
 
mudbox::Vector VertexFactor (void) const
 
void SetVertexFactor (const mudbox::Vector &vFactor)
 
mudbox::Vector VertexOffset (void) const
 
void SetVertexOffset (const mudbox::Vector &vOffset)
 
QString LayerNameForVertexAction (void) const
 Return the name of the layer which should be used as the target for the set sculpt layer mask action. This is only valid if utilizer type is set to vertex, and vertex action is set to vaSculptLayerMask. More...
 
void SetLayerNameForVertexAction (const QString &sLayerName)
 Sets the name of the layer which should be used as the target for the set sculpt layer mask action. This is only valid if utilizer type is set to vertex, and vertex action is set to vaSculptLayerMask. More...
 
bool RedirectToSculptLayer (void) const
 Returns true, if the result will be put into a new sculpt layer. This is only valid if utilizer type is set to vertex, and vertex actio is set to vaMove or vaDisplace. More...
 
void SetRedirectToSculptLayer (bool bRedirect)
 Turns sculpt layer creation on/off. This is only valid if utilizer type is set to vertex, and vertex actio is set to vaMove or vaDisplace. More...
 
mudbox::LayerResultLayer (void) const
 Returns the address of the layer created by the sampler. This should be called after the map extraction operation was executed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Sampler
 Sampler (void)
 
- Protected Attributes inherited from Sampler
mudbox::aptr< mapextractionmodules::Samplerm_pSampler
 

Member Function Documentation

QString ChannelName ( void  ) const

Returns the name of the paint channel to be scanned.

This must be one of the following:

  • Diffuse
  • Specular
  • Gloss
  • Incandescence
  • Opacity
  • Vector Displacement Map
  • Bump Map
  • Normal Map
  • Reflection Mask
void SetChannelName ( const QString sChannelName)

Sets the name of the paint channel to be scanned.

This must be one of the following:

  • Diffuse
  • Specular
  • Gloss
  • Incandescence
  • Opacity
  • Vector Displacement Map
  • Bump Map
  • Normal Map
  • Reflection Mask
+ Examples:
int LayerIndex ( void  ) const

Returns the index of the layer/layer group inside the paint channel to be scanned.

void SetLayerIndex ( int  iIndex)

Sets the index of the layer/layer group inside the paint channel to be scanned.

+ Examples:
int LayerInGroupIndex ( void  ) const

Return the index of the layer inside the layer group to be scanned, -1 means it's not controlled by a group.

void SetLayerInGroupIndex ( int  iIndex)

Sets the index of the layer inside the layer group to be scanned, -1 means it's not controlled by a group.


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