|
NX Open C++ Reference Guide
|
Represents a Display::LightBuilder
This class is restricted to being called from a program running during an Interactive NX session.
More...
Public Types | |
| enum | LightMode { LightModeFixedToObserver, LightModeFixedToThePart } |
| light_mode More... | |
| enum | ShadowType { ShadowTypeNone, ShadowTypeSoftEdged, ShadowTypeHardEdged, ShadowTypeTranslucentHard } |
| shadow types More... | |
Public Member Functions | |
| double | ConeAngle () |
| Returns the cone angle - only applicable to spot light types Created in NX5.0.0. | |
| NXOpen::Point * | DestinationPosition () |
| Returns the destination position - only applicable to spot light types Created in NX5.0.0. | |
| double | Intensity () |
| Returns the brightness intensity for a given light Created in NX5.0.0. | |
| NXOpen::Display::LightBuilder::ShadowType | LightShadowType () |
| Returns the light shadow type - not applicable to ambient or eye light types Created in NX5.0.0. | |
| NXOpen::LightType | LightType () |
| Returns the light type for a particular light Created in NX5.0.0. | |
| void | SetConeAngle (double coneAngle) |
| Sets the cone angle - only applicable to spot light types Created in NX5.0.0. | |
| void | SetDestinationPosition (NXOpen::Point *destinationPosition) |
| Sets the destination position - only applicable to spot light types Created in NX5.0.0. | |
| void | SetIntensity (double intensity) |
| Sets the brightness intensity for a given light Created in NX5.0.0. | |
| void | SetLightShadowType (NXOpen::Display::LightBuilder::ShadowType lightShadowType) |
| Sets the light shadow type - not applicable to ambient or eye light types Created in NX5.0.0. | |
| void | SetLightType (NXOpen::LightType lightType) |
| Sets the light type for a particular light Created in NX5.0.0. | |
| void | SetSourcePosition (NXOpen::Point *sourcePosition) |
| Sets the source position - only applicable to spot and point light types Created in NX5.0.0. | |
| void | SetUseWithIbl (bool useWithIBL) |
| Sets the use_with_ibl flag for a given light Created in NX5.0.0. | |
| NXOpen::Point * | SourcePosition () |
| Returns the source position - only applicable to spot and point light types Created in NX5.0.0. | |
| bool | UseWithIbl () |
| Returns the use_with_ibl flag for a given light Created in NX5.0.0. | |
Public Member Functions inherited from NXOpen::Builder | |
| NXOpen::NXObject * | Commit () |
| Commits any edits that have been applied to the builder. | |
| void | Destroy () |
| Deletes the builder, and cleans up any objects created by the builder. | |
| std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
| For builders that create more than one object, this method returns the objects that are created by commit. | |
| NXOpen::NXObject * | GetObject () |
| Returns the object currently being edited by this builder. | |
| void | ShowResults () |
| Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
| virtual bool | Validate () |
| Validate whether the inputs to the component are sufficient for commit to be called. | |
Public Member Functions inherited from NXOpen::TaggedObject | |
| tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
| tag_t | Tag () const |
| Returns the tag of this object. | |
Represents a Display::LightBuilder
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.
To create a new instance of this class, use ViewCollection::CreateLightBuilder
Created in NX5.0.0.
shadow types
| ShadowTypeNone |
No shadows will be produced. |
| ShadowTypeSoftEdged |
Soft-edged,approximated shadows will be generated using a shadow mapping algorithm. |
| ShadowTypeHardEdged |
Hard-edged, precise shadows will be generated using a ray-tracing algorithm. |
| ShadowTypeTranslucentHard |
Hard-edged, precise shadows will be generated using a ray-tracing algorithm. Shadows from translucent objects will also be generated and their color will be determined by the transparent object's color. |
| double NXOpen::Display::LightBuilder::ConeAngle | ( | ) |
Returns the cone angle - only applicable to spot light types
Created in NX5.0.0.
License requirements : None
| NXOpen::Point* NXOpen::Display::LightBuilder::DestinationPosition | ( | ) |
Returns the destination position - only applicable to spot light types
Created in NX5.0.0.
License requirements : None
| double NXOpen::Display::LightBuilder::Intensity | ( | ) |
Returns the brightness intensity for a given light
Created in NX5.0.0.
License requirements : None
| NXOpen::Display::LightBuilder::ShadowType NXOpen::Display::LightBuilder::LightShadowType | ( | ) |
Returns the light shadow type - not applicable to ambient or eye light types
Created in NX5.0.0.
License requirements : None
| NXOpen::LightType NXOpen::Display::LightBuilder::LightType | ( | ) |
Returns the light type for a particular light
Created in NX5.0.0.
License requirements : None
| void NXOpen::Display::LightBuilder::SetConeAngle | ( | double | coneAngle | ) |
Sets the cone angle - only applicable to spot light types
Created in NX5.0.0.
License requirements : None
| coneAngle | coneangle |
| void NXOpen::Display::LightBuilder::SetDestinationPosition | ( | NXOpen::Point * | destinationPosition | ) |
Sets the destination position - only applicable to spot light types
Created in NX5.0.0.
License requirements : None
| destinationPosition | destinationposition |
| void NXOpen::Display::LightBuilder::SetIntensity | ( | double | intensity | ) |
Sets the brightness intensity for a given light
Created in NX5.0.0.
License requirements : None
| intensity | intensity |
| void NXOpen::Display::LightBuilder::SetLightShadowType | ( | NXOpen::Display::LightBuilder::ShadowType | lightShadowType | ) |
Sets the light shadow type - not applicable to ambient or eye light types
Created in NX5.0.0.
License requirements : None
| lightShadowType | lightshadowtype |
| void NXOpen::Display::LightBuilder::SetLightType | ( | NXOpen::LightType | lightType | ) |
Sets the light type for a particular light
Created in NX5.0.0.
License requirements : None
| lightType | lighttype |
| void NXOpen::Display::LightBuilder::SetSourcePosition | ( | NXOpen::Point * | sourcePosition | ) |
Sets the source position - only applicable to spot and point light types
Created in NX5.0.0.
License requirements : None
| sourcePosition | sourceposition |
| void NXOpen::Display::LightBuilder::SetUseWithIbl | ( | bool | useWithIBL | ) |
Sets the use_with_ibl flag for a given light
Created in NX5.0.0.
License requirements : None
| useWithIBL | usewithibl |
| NXOpen::Point* NXOpen::Display::LightBuilder::SourcePosition | ( | ) |
Returns the source position - only applicable to spot and point light types
Created in NX5.0.0.
License requirements : None
| bool NXOpen::Display::LightBuilder::UseWithIbl | ( | ) |
Returns the use_with_ibl flag for a given light
Created in NX5.0.0.
License requirements : None