CFx SDK Documentation
2020SP3
|
#include <DbRenderSettings.h>
This class is a container class for the properties relevent to generic high-fidelity renderers.
In addition, the active RenderSettings are stored in the NamedObjectsDictionary under ACAD_RENDER_ACTIVE_SETTINGS.
Definition at line 43 of file DbRenderSettings.h.
OdDbRenderSettings::OdDbRenderSettings | ( | ) |
|
virtual |
bool OdDbRenderSettings::backFacesEnabled | ( | ) | const |
Returns true if and only if back-facing faces are rendered for this RenderSettings object.
OdString OdDbRenderSettings::description | ( | ) | const |
Returns the description of this RenderSettings object.
bool OdDbRenderSettings::diagnosticBackgroundEnabled | ( | ) | const |
Return true if and only if the diagnostic background is enabled for this RenderSettings object.
int OdDbRenderSettings::displayIndex | ( | ) | const |
Returns the DisplayIndex of this RenderSettings object.
DisplayIndices need not be positive or consecutive, and are not intended for use as ID numbers.
|
virtual |
Returns the OdGiDrawable for this RenderSettings object.
Reimplemented from OdDbObject.
|
virtual |
Reads the .dwg file data of this object.
pFiler | [in] Filer object from which data are read. |
This function is called by dwgIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dwgInFields(pFiler) returned. 4) Call the OdDbDwgFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
Reimplemented in OdDbRapidRTRenderSettings, and OdDbMentalRayRenderSettings.
|
virtual |
Writes the .dwg file data of this object.
pFiler | [in] Pointer to the filer to which data are written. |
This function is called by dwgIn() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dwgOutFields(pFiler). 3) Call the OdDbDwgFiler(pFiler) methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
Reimplemented in OdDbRapidRTRenderSettings, and OdDbMentalRayRenderSettings.
|
virtual |
Reads the DXF data of this object.
pFiler | [in] Pointer to the filer from which data are read. |
This function is called by dxfIn() to allow the object to read its data.
When overriding this function:
1) Call assertWriteEnabled(). 2) Call the parent class's dwgInFields(pFiler). 3) If it returns eOK, continue; otherwise return whatever the parent's dxfInFields(pFiler) returned. 4) Call the OdDbDxfFiler(pFiler) methods to read each of the object's data items in the order they were written. 5) Return pFiler->filerStatus().
Reimplemented from OdDbObject.
Reimplemented in OdDbRapidRTRenderSettings, and OdDbMentalRayRenderSettings.
|
virtual |
Writes the DXF data of this object.
pFiler | [in] Pointer to the filer to which data are to be written. |
This function is called by dxfOut() to allow the object to write its data.
When overriding this function:
1) Call assertReadEnabled(). 2) Call the parent class's dxfOutFields(pFiler). 4) Use pFiler to call the OdDbDxfFiler methods to write each of the object's data items in the order they were written.
Reimplemented from OdDbObject.
Reimplemented in OdDbRapidRTRenderSettings, and OdDbMentalRayRenderSettings.
bool OdDbRenderSettings::isPredefined | ( | ) | const |
Returns flag which is identifies does this render settings are predefined or not.
bool OdDbRenderSettings::materialsEnabled | ( | ) | const |
Returns true if and only if materials are rendered on a per-object basis for this RenderSettings object.
The default value for MaterialsEnabled == true.
OdString OdDbRenderSettings::name | ( | ) | const |
Returns the name of this RenderSettings object.
OdDbRenderSettings::ODDB_DECLARE_MEMBERS | ( | OdDbRenderSettings | ) |
|
virtual |
OdString OdDbRenderSettings::previewImageFileName | ( | ) | const |
Returns the full filename of the preview image for this RenderSettings object.
If the PreviewImageFileName is blank, no preview image is associated with this RenderSettings object.
void OdDbRenderSettings::setBackFacesEnabled | ( | bool | backFacesEnabled | ) |
Controls the rendering of back-facing faces for this RenderSettings object.
backFacesEnabled | [in] Controls BackFacesEnabled. |
Sets the description of this RenderSettings object.
description | [in] Description. |
void OdDbRenderSettings::setDiagnosticBackgroundEnabled | ( | bool | diagnosticBackgroundEnabled | ) |
Controls the rendering of the diagnostic background for this RenderSettings object.
diagnosticBackgroundEnabled | [in] Controls DiagnosticBackgroundEnabled. |
The default value of DiagnosticBackgroundEnabled == false.
void OdDbRenderSettings::setDisplayIndex | ( | int | displayIndex | ) |
Sets the DisplayIndex of this RenderSettings object.
displayIndex | [in] DisplayIndex. |
DisplayIndices need not be positive or consecutive, and are not intended for use as ID numbers.
OdResult OdDbRenderSettings::setIsPredefined | ( | bool | bSet | ) |
Sets flag which is identifies does this render settings are predefined or not.
bSet | [in] Set flag. |
void OdDbRenderSettings::setMaterialsEnabled | ( | bool | materialsEnabled | ) |
Controls the rendering of materials on a per-object basis for this RenderSettings object.
materialsEnabled | [in] Controls MaterialsEnabled. |
The default value for MaterialsEnabled == true.
Sets the name of this RenderSettings object.
name | [in] Name. |
Sets the full filename of the preview image for this RenderSettings object.
filename | [in] Filename. |
void OdDbRenderSettings::setShadowsEnabled | ( | bool | shadowsEnabled | ) |
Controls the casting of shadows for this RenderSettings object.
shadowsEnabled | [in] Controls ShadowsEnabled. |
void OdDbRenderSettings::setTextureSampling | ( | bool | textureSampling | ) |
Controls the sampling of image textures for this RenderSettings object.
textureSampling | [in] Controls TextureSampling. |
bool OdDbRenderSettings::shadowsEnabled | ( | ) | const |
Returns true if and only if shadows are cast for this RenderSettings object.
|
virtual |
Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.
pTraits | [in] Pointer to the OdGiDrawableTraits object to be set. |
A derived class may not remove flags for any reason.
The default implementation does nothing but returns kDrawableNone. This function can be overridden in custom classes.
Reimplemented from OdDbObject.
Reimplemented in OdDbRapidRTRenderSettings, and OdDbMentalRayRenderSettings.
bool OdDbRenderSettings::textureSampling | ( | ) | const |
Returns true if and only if texture sampling is enabled for this RenderSettings object.