NormalSampler Class Reference

NormalSampler Class Reference

#include <MapExtractorAPI.h>

Class Description

This class represents the normal vector sampler.

+ Examples:

Definition at line 208 of file MapExtractorAPI.h.

+ Inheritance diagram for NormalSampler:

Public Member Functions

enum Space Space (void) const
 Returns the coordinate space normals are calculated in. More...
 
void SetSpace (enum Space eSpace)
 Sets the coorinate space in which normals should be calculated in. More...
 
bool Smooth (void) const
 Returns true, if mudbox uses smooth normals on the source mesh, otherwise raw face normals will be used. More...
 
void SetSmooth (bool bSmooth)
 Sets whether smooth or face normals should be used from the source mesh by Mudbox. More...
 
enum Compatibility Compatibility (void) const
 Returns the current compatibility mode for the normal map. Valid only if the coordinate space is set to tangent. More...
 
void SetCompatibility (enum Compatibility eCompatibility)
 Sets the current compatibility mode for the normal map. Valid only if the coordinate space is set to tangent. 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

enum Space Space ( void  ) const

Returns the coordinate space normals are calculated in.

void SetSpace ( enum Space  eSpace)

Sets the coorinate space in which normals should be calculated in.

bool Smooth ( void  ) const

Returns true, if mudbox uses smooth normals on the source mesh, otherwise raw face normals will be used.

void SetSmooth ( bool  bSmooth)

Sets whether smooth or face normals should be used from the source mesh by Mudbox.

enum Compatibility Compatibility ( void  ) const

Returns the current compatibility mode for the normal map. Valid only if the coordinate space is set to tangent.

void SetCompatibility ( enum Compatibility  eCompatibility)

Sets the current compatibility mode for the normal map. Valid only if the coordinate space is set to tangent.


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