|
LightWrap++
AC++wrapperfortheLightWave3DSDK
|
#include <texture.h>
Inheritance diagram for lwpp::TextureLayer:
Collaboration diagram for lwpp::TextureLayer:Public Member Functions | |
| TextureLayer (LWTLayerID _id=0) | |
| virtual bool | available () const |
| Check if the global is available. | |
| LWChanGroupID | getChannelGroup (void) |
| Returns the group associated with the LWTLayerID. | |
| virtual LWTextureFuncs * | getGlobal () |
| Get the pointer to the global. | |
| LWTLayerID | getID () const |
| LWTextureID | getTextureID () |
| Gets the Texture ID containing this layer. | |
| int | getType () |
| Gets the type of the Layer. | |
| bool | isValid () const |
| bool | nextLayer () |
| double | noise (double pos[3]) |
| Provides access to a noise function. | |
| LWTextureFuncs * | operator-> () |
| Get the pointer to the global. | |
| void | setType (int type) |
| Set the type of the Layer. | |
Setting Parameters | |
Changing paramaters for a TextureLayer | |
| template<typename T > | |
| int | setParam (int tag, T &data) |
| Sets a parameter on a Layer. | |
| int | setParam (int tag, int data) |
| Sets a parameter on a Layer. | |
| int | setParam (int tag, double data) |
| Sets a parameter on a Layer. | |
| int | setParam (int tag, double data[]) |
| Sets a parameter on a Layer. | |
| int | setPosition (double position[3]) |
| Sets the position of a Layer. | |
| int | setRotation (double rotation[3]) |
| Sets the rotation angles of a Layer. | |
| int | setSize (double size[3]) |
| Sets the size of a Layer. | |
| int | setFalloff (double falloff[3]) |
| Sets the falloff of a Layer. It is an amout per unit of distance. | |
| int | setProjection (int projection) |
| Sets the Projection of an Image Layer. | |
| int | setAxis (int axis) |
| Sets the Axis of projection of the Layer. | |
| int | setWidthWrap (double widthwrap) |
| Sets the Width Wrap amount of the Layer. | |
| int | setHeightWrap (double heightwrap) |
| Sets the Height Wrap amount of the Layer. | |
| int | setCoordSystem (int coordsys) |
| Sets the Coordinate System amount of the Layer. | |
| int | setImageID (LWImageID imageID) |
| Sets the Image ID for a Image Layer. | |
| int | setVMapID (LWID vmapID) |
| Sets the VMAP used for example on a UV Map Texture or Weight Map texture. | |
| int | setReferenceItem (LWItemID refObjID) |
| Sets the ID of the Reference Object used to drive origin, rotation and size of the Texture. | |
| int | setLayerOpacity (double layerOpacity) |
| Sets the Layer opacity. | |
| int | setAntialiasing (bool antialiasing) |
| Turns on the antialiasing of the Layer. | |
| int | setAAThreshold (double aaThreshold) |
| sets the Texture Antialias Threshold. | |
| int | setPixelBlending (bool pixelblending) |
| Turns on the Pixel Blending. | |
| int | setWidthWrapBehavior (int widthwrap) |
| Sets the Width Wrap behavior of the Layer. | |
| int | setHeightWrapBehavior (int heightwrap) |
| Sets the Height Wrap behavior of the Layer. | |
| bool | activate () |
| Activates the Texture. | |
| bool | deActivate () |
| DeActivates the Texture. | |
| bool | invert () |
| Inverts the texture. | |
| int | setBlendingMode (int blendmode) |
| Sets the blending mode of the layer. | |
| int | setInputParameterIndex (int inputparameterindex) |
| Sets the Input Parameter index. | |
| int | setAuvName (char *auvName) |
| Sets the Anim UV Name. | |
| int | setAuvUser (char *auvUser) |
| Sets the Anim UV User. | |
| int | setAuvArrayByteCount (int *auvArrByteCount) |
| Sets the Anim UV Plugin Options Array Byte Count. | |
| int | setAuvPluginOpts (char *auvplugopts) |
| Sets the Anim UV Plugin Options Array. | |
Getting Paramaters | |
Retrieving parameters of a texture layer | |
| int | getParam (int tag, void *data) |
| Gets a parameter from a Layer. | |
| template<typename T > | |
| T | getParam (int tag) |
| Gets a parameter from a Layer. | |
| int | getPosition (double position[3]) |
| Gets the position of a Layer. | |
| int | getRotation (double rotation[3]) |
| Gets the rotation of a Layer. | |
| int | getSize (double size[3]) |
| Gets the size of a Layer. | |
| int | getFalloff (double falloff[3]) |
| Gets the falloff of a Layer. It is an amout per unit of distance. | |
| int | getProjection (int *projection) |
| Gets the Projection of an Image Layer. | |
| int | getAxis (int *axis) |
| Gets the Axis of projection of the Layer. | |
| double | getWidthWrap () |
| Gets the Width Wrap amount of the Layer. | |
| double | getHeightWrap () |
| Gets the Height Wrap amount of the Layer. | |
| int | getCoordSystem (int *coordsys) |
| Gets the Coordinate System amount of the Layer. | |
| int | getImageID (LWImageID *imageID) |
| Gets the Image ID for a Image Layer. | |
| int | getVMapID (LWID *vmapID) |
| Gets the VMAP used for example on a UV Map Texture or Weight Map texture. | |
| int | getReferenceItem (LWItemID *refObjID) |
| Gets the ID of the Reference Object used to drive origin, rotation and size of the Texture. | |
| int | getLayerOpacity (double *layerOpacity) |
| Gets the Layer opacity. | |
| bool | isAntialiased (void) |
| Tells if the texture is antialias is enabled for the Texture. | |
| int | getAAThreshold (double *aaThreshold) |
| Gets the Texture Antialias Threshold. | |
| bool | hasPixelBlending () |
| Check if the texture has Pixel Blending enabled for the Texture. | |
| int | getWidthWrapBehavior (int *widthwrap) |
| Gets the Width Wrap behavior of the Layer. | |
| int | getHeightWrapBehavior (int *heightwrap) |
| Gets the Height Wrap behavior of the Layer. | |
| bool | isActive () |
| Returns a boolean. true if the texture is active, false if not. | |
| bool | isInverted () |
| Returns a boolean. true if the texture is inverted, false if not. | |
| int | blendingmode (int *blendmode) |
| Returns the blending mode of the layer. | |
| int | inputParameterIndex (int *inputparameterindex) |
| Returns Input Parameter index. | |
| int | auvName (char *auvName) |
| Returns Anim UV Name. | |
| int | auvUser (char *auvUser) |
| Returns Anim UV User. | |
| int | auvArrayByteCount (int *auvArrByteCount) |
| Returns the Anim UV Plugin Options Array Byte Count. | |
| int | auvPluginOpts (char *auvplugopts) |
| Returns the Anim UV Plugin Options Array. | |
| void | evaluateUV (int wAxis, int oAxis, double oPos[3], double wPos[3], double uv[2]) |
| Returns UV Coordinates. | |
Protected Member Functions | |
| bool | _acquireGlobal () |
Static Protected Attributes | |
| static LWTextureFuncs * | globPtr |
| Pointer to the global functions. | |
Wrapper for Texture Layers
Give access to the Texture engine to create Image, Gradient or Procedural Layers.
|
inline |
|
inlineprotectedinherited |
|
inline |
Activates the Texture.
|
inline |
Returns the Anim UV Plugin Options Array Byte Count.
| auvArrByteCount | is an int pointer where to store the array byte count of the AnimUV plugin. |
|
inline |
Returns Anim UV Name.
| auvName | is an char pointer where to store the name of the AnimUV. |
|
inline |
Returns the Anim UV Plugin Options Array.
| auvplugopts | is an char pointer where to store the plugin options array of the AnimUV. |
|
inline |
Returns Anim UV User.
| auvUser | is an char pointer where to store the user of the AnimUV. |
|
inlinevirtualinherited |
Check if the global is available.
|
inline |
Returns the blending mode of the layer.
| blendmode | is an int pointer where to store the blending mode. It can return TXBLN_NORMAL, TXBLN_SUBTRACT, TXBLN_DIFFERENCE, TXBLN_MULTIPLY, TXBLN_DIVIDE, TXBLN_ALPHA, TXBLN_DISPLACE, TXBLN_ADD |
|
inline |
DeActivates the Texture.
|
inline |
Returns UV Coordinates.
Returns UV Coordinates for a given position for Layers that use one of the implicit imaage mapping projections like planar, cubic, cylindrical, or spherical). If the texture uses an explicit UV mapping, the UV coordinates an be obtained directly from the vertex map through mesh info or MeshEditOp functions.
| wAxis | is an int pointer where to store the dominant axis in WORLD coordinates for a cubic mapping. X = 0, Y = 1, Z=2 This is usually chosen as the polygon normal component that's largest in absolute value. For projections other than cubic, these arguments are ignored. |
| oAxis | is an int pointer where to store the dominant axis in OBJECT coordinates for a cubic mapping. X = 0, Y = 1, Z=2 This is usually chosen as the polygon normal component that's largest in absolute value. For projections other than cubic, these arguments are ignored. |
| oPos | is an double pointer to an array that specify the position for which the UV should be returned in OBJECT coordinates for a cubic mapping. |
| wPos | is an double pointer to an array that specify the position for which the UV should be returned in WORLD coordinates for a cubic mapping. |
| uv | is an double pointer to an array where to store the UV Coordinates. |
|
inline |
|
inline |
Gets the Axis of projection of the Layer.
| axis | is an int pointer where to store the axis. The values can store are ??????????????? |
|
inline |
Returns the group associated with the LWTLayerID.
|
inline |
Gets the Coordinate System amount of the Layer.
| coordsys | is an int pointer where to store the Coordinate System. 0 for Object Coordinates. 1 for World Coordinates. |
|
inline |
Gets the falloff of a Layer. It is an amout per unit of distance.
| falloff | Is the double[3] where to store the falloff. |
|
inlinevirtualinherited |
Get the pointer to the global.
|
inline |
Gets the Height Wrap amount of the Layer.
|
inline |
Gets the Height Wrap behavior of the Layer.
| heightwrap | is pointer to the height wrap behaviour. It can return TXRPT_RESET, TXRPT_REPEAT, TXRPT_MIRROR, TXRPT_EDGE |
|
inline |
|
inline |
|
inline |
Gets the Layer opacity.
| layerOpacity | is an double pointer where to store the Layer opacity. |
|
inline |
Gets a parameter from a Layer.
| tag | Is the parameter of the Layer. |
| data | Is the data to get from the parameter. |
|
inline |
Gets a parameter from a Layer.
| tag | Is the parameter of the Layer. |
| data | Is the data to get from the parameter. |
|
inline |
Gets the position of a Layer.
| position | Is the double[3] where to store the position. |
|
inline |
Gets the Projection of an Image Layer.
| projection | is an int pointer where to store the projection. The values can store are TXPRJ_PLANAR, TXPRJ_CYLINDRICAL, TXPRJ_SPHERICAL, TXPRJ_CUBIC, TXPRJ_FRONT, TXPRJ_UVMAP |
|
inline |
|
inline |
Gets the rotation of a Layer.
| rotation | Is the double[3] where to store the rotation. |
|
inline |
Gets the size of a Layer.
| size | Is the double[3] where to store the size. |
|
inline |
Gets the Texture ID containing this layer.
|
inline |
Gets the type of the Layer.
|
inline |
Gets the VMAP used for example on a UV Map Texture or Weight Map texture.
| vmapID | is an VMapID pointer where to store the VMAP ID. It's value is the opaque pointer returned by the MeshEditOp pointVSet function or the mesh info pntVLookup function. |
|
inline |
Gets the Width Wrap amount of the Layer.
|
inline |
Gets the Width Wrap behavior of the Layer.
| widthwrap | is pointer to store the width wrap. It can return TXRPT_RESET, TXRPT_REPEAT, TXRPT_MIRROR, TXRPT_EDGE |
|
inline |
Check if the texture has Pixel Blending enabled for the Texture.
|
inline |
Returns Input Parameter index.
| inputparameterindex | is an int pointer where to store the index of the Input Parameter. It's value must be between 0 and 15. |
|
inline |
Inverts the texture.
|
inline |
Returns a boolean. true if the texture is active, false if not.
|
inline |
Tells if the texture is antialias is enabled for the Texture.
TODO: Check the ones that returns boolean
|
inline |
Returns a boolean. true if the texture is inverted, false if not.
|
inline |
|
inline |
|
inline |
Provides access to a noise function.
| pos | is an array pointer where to store the noise returned value. |
|
inlineinherited |
Get the pointer to the global.
|
inline |
sets the Texture Antialias Threshold.
The values of the texture will be antialiased only if adjacent values are greater thant this threshold.
| aaThreshold | is an double with the new Antialiasing threshold. |
|
inline |
Turns on the antialiasing of the Layer.
| antialiasing | is a bool value. True activates it, FALSE deactivates it. |
|
inline |
Sets the Anim UV Plugin Options Array Byte Count.
| auvArrByteCount | is an int with the new byte count of the AnimUV. |
|
inline |
Sets the Anim UV Name.
| auvName | is an char pointer with the new name of the AnimUV. |
|
inline |
Sets the Anim UV Plugin Options Array.
| auvplugopts | is an char pointer with the new plugin options AnimUV. |
|
inline |
Sets the Anim UV User.
| auvUser | is an char pointer with the new user of the AnimUV. |
|
inline |
Sets the Axis of projection of the Layer.
| axis | is an int with the new axis. The values can accept are ??????????????? |
|
inline |
Sets the blending mode of the layer.
| blendmode | is an int with the new blending mode. It can accept TXBLN_NORMAL, TXBLN_SUBTRACT, TXBLN_DIFFERENCE, TXBLN_MULTIPLY, TXBLN_DIVIDE, TXBLN_ALPHA, TXBLN_DISPLACE, TXBLN_ADD |
|
inline |
Sets the Coordinate System amount of the Layer.
| coordsys | is an int with the new Coordinate System. 0 for Object Coordinates. 1 for World Coordinates. |
|
inline |
Sets the falloff of a Layer. It is an amout per unit of distance.
| falloff | Is the double[3] with the new fallof. |
|
inline |
Sets the Height Wrap amount of the Layer.
| heightwrap | is an double with the new width wrap. |
|
inline |
Sets the Height Wrap behavior of the Layer.
| heightwrap | is an int pointer with the new height wrap behaviour. It accepts TXRPT_RESET, TXRPT_REPEAT, TXRPT_MIRROR, TXRPT_EDGE |
|
inline |
|
inline |
Sets the Input Parameter index.
| inputparameterindex | is an int with the new index of the Input Parameter. It's value must be between 0 and 15. |
|
inline |
Sets the Layer opacity.
| layerOpacity | is an double with the new Layer opacity. |
|
inline |
Sets a parameter on a Layer.
| tag | Is the parameter of the Layer. |
| data | Is the data for the parameter. |
|
inline |
Sets a parameter on a Layer.
| tag | Is the parameter of the Layer. |
| data | Is an integer value to set the parameter. |
|
inline |
Sets a parameter on a Layer.
| tag | Is the parameter of the Layer. |
| data | Is a pointer double value to set the parameter. |
|
inline |
Sets a parameter on a Layer.
| tag | Is the parameter of the Layer. |
| data | Is a double value to set the parameter. |
|
inline |
Turns on the Pixel Blending.
| pixelblending |
|
inline |
Sets the position of a Layer.
| position | Is the double[3] with the new position. |
|
inline |
Sets the Projection of an Image Layer.
| projection | is an int with the new projection. The values can accept are TXPRJ_PLANAR, TXPRJ_CYLINDRICAL, TXPRJ_SPHERICAL, TXPRJ_CUBIC, TXPRJ_FRONT, TXPRJ_UVMAP |
|
inline |
|
inline |
Sets the rotation angles of a Layer.
| rotation | a double[3] with the new rotation angles as hpb. |
|
inline |
Sets the size of a Layer.
| size | Is the double[3] with the new size. |
|
inline |
Set the type of the Layer.
| type | Is the type of Layer to create. Can be TLT_IMAGE (Image Layer), TLT_PROC (Procedural Layer), TLT_GRAD (Gradient Layer) |
|
inline |
Sets the VMAP used for example on a UV Map Texture or Weight Map texture.
| vmapID | is an VMapID with the new VMAP ID. It's value is the opaque pointer returned by the MeshEditOp pointVSet function or the mesh info pntVLookup function. |
|
inline |
Sets the Width Wrap amount of the Layer.
| widthwrap | is an double with the new width wrap. |
|
inline |
Sets the Width Wrap behavior of the Layer.
| widthwrap | is an int pointer with the new width wrap behaviour. It accepts TXRPT_RESET, TXRPT_REPEAT, TXRPT_MIRROR, TXRPT_EDGE |
|
staticprotectedinherited |
Pointer to the global functions.