NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::Display::CgfxMattexBuilder Class Reference

Represents a NXOpen::Display::CgfxMattex builder
This class is restricted to being called from a program running during an Interactive NX session. More...

Inheritance diagram for NXOpen::Display::CgfxMattexBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  Technique { TechniqueBase }
 The technique is an index to a technique name in a list found in the CgFX file. More...
 
enum  TextureSpace { TextureSpaceDefaultUv, TextureSpaceEdited }
 The texture space type indicates the texture space type to use for CgFX shader. More...
 
enum  TextureSpaceShader {
  TextureSpaceShaderArbitraryPlane, TextureSpaceShaderCylindrical, TextureSpaceShaderSpherical, TextureSpaceShaderWcsAutoAxis,
  TextureSpaceShaderUv, TextureSpaceShaderCameraDirectionPlane
}
 The texture space shader type indicates the type of texture space shader to use for CgFX shader. More...
 
enum  UseCameraDirectionPlane { UseCameraDirectionPlaneNormalVector, UseCameraDirectionPlaneNormalAndUpVector }
 The option indicates which texture space vectors are updated upon Update Texture to Camera Direction action. More...
 

Public Member Functions

std::vector< NXOpen::NXObject * > GetAttributeValues ()
 Returns the attribute values. More...
 
NXString MaterialName ()
 Returns the material name
More...
 
void SetAttributeValues (const std::vector< NXOpen::NXObject * > &attributeValues)
 Sets the attribute values
More...
 
void SetMaterialName (const NXString &materialName)
 Sets the material name
More...
 
void SetMaterialName (const char *materialName)
 Sets the material name
More...
 
void SetShadowCastingDisabled (bool disableShadowCasting)
 Sets the flag indicating if shadow casting is disabled
More...
 
void SetTechniqueType (NXOpen::Display::CgfxMattexBuilder::Technique technique)
 Sets the display techniques
More...
 
void SetTextureSpaceShaderType (NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader textureSpaceShaderType)
 Sets the texture space shader type
More...
 
void SetUseCameraDirectionPlaneOption (NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlane useCameraDiretionPlaneOption)
 Sets the use camera direction plane option
More...
 
bool ShadowCastingDisabled ()
 Returns the flag indicating if shadow casting is disabled
More...
 
NXOpen::Display::CgfxMattexBuilder::Technique TechniqueType ()
 Returns the display techniques
More...
 
NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader TextureSpaceShaderType ()
 Returns the texture space shader type
More...
 
void UpdateMaterialsInPartPaletteEntry ()
 This is used to update the materials in part palette entry
More...
 
NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlane UseCameraDirectionPlaneOption ()
 Returns the use camera direction plane option
More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a NXOpen::Display::CgfxMattex builder
This class is restricted to being called from a program running during an Interactive NX session.

If run from a non-interactive session it will return NULL.



Deprecated:
Deprecated in NX10.0.0. No alternative provided for this class.


Created in NX5.0.0.

Member Enumeration Documentation

The technique is an index to a technique name in a list found in the CgFX file.

There is is unknown until the CgFX file is loaded.

Enumerator
TechniqueBase 

place holder for variable technique list

The texture space type indicates the texture space type to use for CgFX shader.


NOTE: This is deprecated. Please use TextureSpaceShader instead.


Deprecated:
Deprecated in NX7.5.2. Use NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader instead.
Enumerator
TextureSpaceDefaultUv 

scale 1, 0 offset uv texture space

TextureSpaceEdited 

the one edited using the material texture dialog

The texture space shader type indicates the type of texture space shader to use for CgFX shader.

Enumerator
TextureSpaceShaderArbitraryPlane 

based on specified plane

TextureSpaceShaderCylindrical 

for cylindrical model

TextureSpaceShaderSpherical 

for spherical geometry

TextureSpaceShaderWcsAutoAxis 

auto tri plane

TextureSpaceShaderUv 

scale 1, 0 offset uv texture space

TextureSpaceShaderCameraDirectionPlane 

scale 1, 0 offset uv texture space

The option indicates which texture space vectors are updated upon Update Texture to Camera Direction action.

Enumerator
UseCameraDirectionPlaneNormalVector 

normal vector is updated based on camera direction

UseCameraDirectionPlaneNormalAndUpVector 

both normal and up vectors are updated based on camera direction

Member Function Documentation

std::vector<NXOpen::NXObject *> NXOpen::Display::CgfxMattexBuilder::GetAttributeValues ( )

Returns the attribute values.

Returns

Deprecated:
Deprecated in NX10.0.0. No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

NXString NXOpen::Display::CgfxMattexBuilder::MaterialName ( )

Returns the material name

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

void NXOpen::Display::CgfxMattexBuilder::SetAttributeValues ( const std::vector< NXOpen::NXObject * > &  attributeValues)

Sets the attribute values

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

Parameters
attributeValuesattribute values
void NXOpen::Display::CgfxMattexBuilder::SetMaterialName ( const NXString materialName)

Sets the material name

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

Parameters
materialNamematerialname
void NXOpen::Display::CgfxMattexBuilder::SetMaterialName ( const char *  materialName)

Sets the material name

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

Parameters
materialNamematerialname
void NXOpen::Display::CgfxMattexBuilder::SetShadowCastingDisabled ( bool  disableShadowCasting)

Sets the flag indicating if shadow casting is disabled

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX6.0.5.

License requirements : None

Parameters
disableShadowCastingdisableshadowcasting
void NXOpen::Display::CgfxMattexBuilder::SetTechniqueType ( NXOpen::Display::CgfxMattexBuilder::Technique  technique)

Sets the display techniques

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

Parameters
techniquetechnique
void NXOpen::Display::CgfxMattexBuilder::SetTextureSpaceShaderType ( NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader  textureSpaceShaderType)

Sets the texture space shader type

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX7.5.2.

License requirements : None

Parameters
textureSpaceShaderTypetexture space shader type
void NXOpen::Display::CgfxMattexBuilder::SetUseCameraDirectionPlaneOption ( NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlane  useCameraDiretionPlaneOption)

Sets the use camera direction plane option

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX7.5.2.

License requirements : None

Parameters
useCameraDiretionPlaneOptionuse camera diretion plane option
bool NXOpen::Display::CgfxMattexBuilder::ShadowCastingDisabled ( )

Returns the flag indicating if shadow casting is disabled

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX6.0.5.

License requirements : None

NXOpen::Display::CgfxMattexBuilder::Technique NXOpen::Display::CgfxMattexBuilder::TechniqueType ( )

Returns the display techniques

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX5.0.0.

License requirements : None

NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader NXOpen::Display::CgfxMattexBuilder::TextureSpaceShaderType ( )

Returns the texture space shader type

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX7.5.2.

License requirements : None

void NXOpen::Display::CgfxMattexBuilder::UpdateMaterialsInPartPaletteEntry ( )

This is used to update the materials in part palette entry

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX8.0.1.

License requirements : None

NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlane NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlaneOption ( )

Returns the use camera direction plane option

Deprecated:
Deprecated in NX10.0.0.

No alternative provided for this class.


Created in NX7.5.2.

License requirements : None


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.