NX Open C++ Reference Guide
|
Represents a NXOpen::Display::CgfxMattex builder
This class is restricted to being called from a program running during an Interactive NX session.
More...
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::NXObject * | Commit () |
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::NXObject * | GetObject () |
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... | |
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.
Created in NX5.0.0.
The texture space type indicates the texture space type to use for CgFX shader.
NOTE: This is deprecated. Please use 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.
The option indicates which texture space vectors are updated upon Update Texture to Camera Direction action.
std::vector<NXOpen::NXObject *> NXOpen::Display::CgfxMattexBuilder::GetAttributeValues | ( | ) |
Returns the attribute values.
Created in NX5.0.0.
License requirements : None
NXString NXOpen::Display::CgfxMattexBuilder::MaterialName | ( | ) |
Returns the material name
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
No alternative provided for this class.
Created in NX5.0.0.
License requirements : None
attributeValues | attribute values |
void NXOpen::Display::CgfxMattexBuilder::SetMaterialName | ( | const NXString & | materialName | ) |
Sets the material name
No alternative provided for this class.
Created in NX5.0.0.
License requirements : None
materialName | materialname |
void NXOpen::Display::CgfxMattexBuilder::SetMaterialName | ( | const char * | materialName | ) |
Sets the material name
No alternative provided for this class.
Created in NX5.0.0.
License requirements : None
materialName | materialname |
void NXOpen::Display::CgfxMattexBuilder::SetShadowCastingDisabled | ( | bool | disableShadowCasting | ) |
Sets the flag indicating if shadow casting is disabled
No alternative provided for this class.
Created in NX6.0.5.
License requirements : None
disableShadowCasting | disableshadowcasting |
void NXOpen::Display::CgfxMattexBuilder::SetTechniqueType | ( | NXOpen::Display::CgfxMattexBuilder::Technique | technique | ) |
Sets the display techniques
No alternative provided for this class.
Created in NX5.0.0.
License requirements : None
technique | technique |
void NXOpen::Display::CgfxMattexBuilder::SetTextureSpaceShaderType | ( | NXOpen::Display::CgfxMattexBuilder::TextureSpaceShader | textureSpaceShaderType | ) |
Sets the texture space shader type
No alternative provided for this class.
Created in NX7.5.2.
License requirements : None
textureSpaceShaderType | texture space shader type |
void NXOpen::Display::CgfxMattexBuilder::SetUseCameraDirectionPlaneOption | ( | NXOpen::Display::CgfxMattexBuilder::UseCameraDirectionPlane | useCameraDiretionPlaneOption | ) |
Sets the use camera direction plane option
No alternative provided for this class.
Created in NX7.5.2.
License requirements : None
useCameraDiretionPlaneOption | use camera diretion plane option |
bool NXOpen::Display::CgfxMattexBuilder::ShadowCastingDisabled | ( | ) |
Returns the flag indicating if shadow casting is disabled
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
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
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
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
No alternative provided for this class.
Created in NX7.5.2.
License requirements : None