CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
OdDbMentalRayRenderSettings Class Reference

#include <DbRenderSettings.h>

Inheritance diagram for OdDbMentalRayRenderSettings:
OdDbRenderSettings OdDbObject OdGiDrawable OdRxObject

Public Types

enum  ShadowSamplingMultiplier {
  kSamplingMultiplierZero = 0 , kSamplingMultiplierOneEighth = 1 , kSamplingMultiplierOneFourth = 2 , kSamplingMultiplierOneHalf = 3 ,
  kSamplingMultiplierOne = 4 , kSamplingMultiplierTwo = 5
}
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0 , kDrawableIsAnEntity = 1 , kDrawableUsesNesting = 2 , kDrawableIsCompoundObject = 4 ,
  kDrawableViewIndependentViewportDraw = 8 , kDrawableIsInvisible = 16 , kDrawableHasAttributes = 32 , kDrawableRegenTypeDependantGeometry = 64 ,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128) , kDrawableRegenDraw = 256 , kDrawableStandardDisplaySingleLOD = 512 , kDrawableShadedDisplaySingleLOD = 1024 ,
  kDrawableViewDependentViewportDraw = 2048 , kDrawableBlockDependentViewportDraw = 4096 , kDrawableIsExternalReference = 8192 , kDrawableNotPlottable = 16384 ,
  kDrawableNotAllowLCS = 32768 , kDrawableMergeControlOff = 65536 , kLastFlag = kDrawableMergeControlOff
}
 
enum  DrawableType {
  kGeometry = 0 , kDistantLight = 1 , kPointLight = 2 , kSpotLight = 3 ,
  kAmbientLight , kSolidBackground , kGradientBackground , kImageBackground ,
  kGroundPlaneBackground , kViewport , kWebLight , kSkyBackground ,
  kImageBasedLightingBackground
}
 

Public Member Functions

 ODDB_DECLARE_MEMBERS (OdDbMentalRayRenderSettings)
 
 OdDbMentalRayRenderSettings ()
 
virtual ~OdDbMentalRayRenderSettings ()
 
OdResult setSampling (int min, int max)
 
void sampling (int &min, int &max) const
 
OdResult setSamplingFilter (OdGiMrFilter filter, double width, double height)
 
void SamplingFilter (OdGiMrFilter &filter, double &width, double &height) const
 
OdResult setSamplingContrastColor (float red, float green, float blue, float alpha)
 
void samplingContrastColor (float &red, float &green, float &blue, float &alpha) const
 
void setShadowMode (OdGiMrShadowMode shadowMode)
 
OdGiMrShadowMode shadowMode () const
 
void setShadowMapsEnabled (bool shadowMapsEnabled)
 
bool shadowMapsEnabled () const
 
void setRayTracingEnabled (bool rayTracingEnabled)
 
bool rayTracingEnabled () const
 
OdResult setRayTraceDepth (int reflection, int refraction, int sum)
 
void rayTraceDepth (int &reflection, int &refraction, int &sum) const
 
void setGlobalIlluminationEnabled (bool globalIlluminationEnabled)
 
bool globalIlluminationEnabled () const
 
OdResult setGISampleCount (int numPhotons)
 
int giSampleCount () const
 
void setGISampleRadiusEnabled (bool giSampleRadiusEnabled)
 
bool giSampleRadiusEnabled () const
 
OdResult setGISampleRadius (double radius)
 
double giSampleRadius () const
 
OdResult setGIPhotonsPerLight (int numPhotons)
 
int giPhotonsPerLight () const
 
OdResult setPhotonTraceDepth (int reflection, int refraction, int sum)
 
void photonTraceDepth (int &reflection, int &refraction, int &sum) const
 
void setFinalGatheringEnabled (bool finalGatheringEnabled)
 
bool finalGatheringEnabled () const
 
OdResult setFGRayCount (int fgRayCount)
 
int fgRayCount () const
 
void setFGRadiusState (bool useMin, bool useMax, bool inPixels)
 
void fgSampleRadiusState (bool &useMin, bool &useMax, bool &inPixels) const
 
OdResult setFGSampleRadius (double minRadius, double maxRadius)
 
void fgSampleRadius (double &minRadius, double &maxRadius) const
 
OdResult setEnergyMultiplier (float energyMultiplier)
 
float energyMultiplier () const
 
void setDiagnosticMode (OdGiMrDiagnosticMode diagnosticMode)
 
OdGiMrDiagnosticMode diagnosticMode () const
 
OdResult setDiagnosticGridMode (OdGiMrDiagnosticGridMode diagnosticGridMode, float gridSpace)
 
void diagnosticGridMode (OdGiMrDiagnosticGridMode &diagnosticGridMode, float &gridSpace) const
 
void setDiagnosticPhotonMode (OdGiMrDiagnosticPhotonMode diagnosticPhotonMode)
 
OdGiMrDiagnosticPhotonMode diagnosticPhotonMode () const
 
void setDiagnosticSamplesMode (bool diagnosticSamplesMode)
 
bool diagnosticSamplesMode () const
 
void setDiagnosticBSPMode (OdGiMrDiagnosticBSPMode diagnosticBSPMode)
 
OdGiMrDiagnosticBSPMode diagnosticBSPMode () const
 
void setExportMIEnabled (bool exportMIEnabled)
 
bool exportMIEnabled () const
 
OdResult setExportMIFileName (const OdString &filename)
 
OdString exportMIFileName () const
 
OdResult setTileSize (int tileSize)
 
int tileSize () const
 
void setTileOrder (OdGiMrTileOrder tileOrder)
 
OdGiMrTileOrder tileOrder () const
 
OdResult setMemoryLimit (int memoryLimit)
 
int memoryLimit () const
 
OdResult setFinalGatheringMode (OdGiMrFinalGatheringMode mode)
 
OdGiMrFinalGatheringMode finalGatheringMode () const
 
OdResult setLightLuminanceScale (double fLuminance)
 
double lightLuminanceScale () const
 
OdResult setExportMIMode (OdGiMrExportMIMode eExportMIMode)
 
OdGiMrExportMIMode exportMIMode () const
 
OdResult setShadowSamplingMultiplier (ShadowSamplingMultiplier multiplier)
 
ShadowSamplingMultiplier shadowSamplingMultiplier () const
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool operator== (const OdDbMentalRayRenderSettings &settings)
 
- Public Member Functions inherited from OdDbRenderSettings
 ODDB_DECLARE_MEMBERS (OdDbRenderSettings)
 
 OdDbRenderSettings ()
 
virtual ~OdDbRenderSettings ()
 
virtual OdGiDrawabledrawable ()
 
OdResult setName (const OdString &name)
 
OdString name () const
 
void setDescription (const OdString &description)
 
OdString description () const
 
void setDisplayIndex (int displayIndex)
 
int displayIndex () const
 
void setMaterialsEnabled (bool materialsEnabled)
 
bool materialsEnabled () const
 
void setTextureSampling (bool textureSampling)
 
bool textureSampling () const
 
void setBackFacesEnabled (bool backFacesEnabled)
 
bool backFacesEnabled () const
 
void setShadowsEnabled (bool shadowsEnabled)
 
bool shadowsEnabled () const
 
OdResult setPreviewImageFileName (const OdString &filename)
 
OdString previewImageFileName () const
 
void setDiagnosticBackgroundEnabled (bool diagnosticBackgroundEnabled)
 
bool diagnosticBackgroundEnabled () const
 
OdResult setIsPredefined (bool bSet)
 
bool isPredefined () const
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool operator== (const OdDbRenderSettings &settings)
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
virtual OdResult subErase (bool erasing)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
virtual void subHandOverTo (OdDbObject *pNewObject)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void audit (OdDbAuditInfo *pAuditInfo)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
virtual void dwgOutFields (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
virtual void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &idMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &idMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
virtual void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &idMap)
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
virtual void copyFrom (const OdRxObject *pSource)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
virtual bool isPersistent () const =0
 
virtual OdDbStub * id () const =0
 
virtual void setGsNode (OdGsCache *pGsNode)=0
 
virtual OdGsCachegsNode () const =0
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdDbRenderSettings
static OdSmartPtr< OdDbRenderSettingscastByClassName (OdRxObject *obj)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
virtual OdResult subGetClassID (void *pClsid) const
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const
 
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *traits) const =0
 
virtual bool subWorldDraw (OdGiWorldDraw *wd) const =0
 
virtual void subViewportDraw (OdGiViewportDraw *vd) const =0
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

This class is a container class for the properties relevent to mental ray renderers.

Remarks
Database-resident OdDbMentalRayRenderSettings objects are stored in the NamedObjectsDictionary under ACAD_RENDER_SETTINGS.

In addition, the active RenderSettings are stored in the NamedObjectsDictionary under ACAD_RENDER_ACTIVE_SETTINGS.

<group OdDb_Classes> 

Definition at line 251 of file DbRenderSettings.h.

Member Enumeration Documentation

◆ ShadowSamplingMultiplier

Shadow sampling multiplier for area lights.

Enumerator
kSamplingMultiplierZero 
kSamplingMultiplierOneEighth 
kSamplingMultiplierOneFourth 
kSamplingMultiplierOneHalf 
kSamplingMultiplierOne 
kSamplingMultiplierTwo 

Definition at line 257 of file DbRenderSettings.h.

Constructor & Destructor Documentation

◆ OdDbMentalRayRenderSettings()

OdDbMentalRayRenderSettings::OdDbMentalRayRenderSettings ( )

◆ ~OdDbMentalRayRenderSettings()

virtual OdDbMentalRayRenderSettings::~OdDbMentalRayRenderSettings ( )
virtual

Member Function Documentation

◆ diagnosticBSPMode()

OdGiMrDiagnosticBSPMode OdDbMentalRayRenderSettings::diagnosticBSPMode ( ) const

Returns the Diagnostic BSP Mode for this MentalRayRenderSettings object.

Parameters
diagnosticBSPMode[in] Diagnostic BSP Mode.
Remarks
The default value for DiagnosticBSPMode is krDepth.

◆ diagnosticGridMode()

void OdDbMentalRayRenderSettings::diagnosticGridMode ( OdGiMrDiagnosticGridMode diagnosticGridMode,
float &  gridSpace 
) const

Returns the Diagnostic Grid for this MentalRayRenderSettings object.

Parameters
diagnosticGridMode[out] Receives the coordinate system for the grid.
gridSpace[out] Receives the distance between grid lines.

◆ diagnosticMode()

OdGiMrDiagnosticMode OdDbMentalRayRenderSettings::diagnosticMode ( ) const

Returns the diagnostic image rendering mode for this MentalRayRenderSettings object.

Parameters
diagnosticMode[in] Diagnostic mode.

◆ diagnosticPhotonMode()

OdGiMrDiagnosticPhotonMode OdDbMentalRayRenderSettings::diagnosticPhotonMode ( ) const

Returns the Diagnostic Photon Mode for this MentalRayRenderSettings object.

◆ diagnosticSamplesMode()

bool OdDbMentalRayRenderSettings::diagnosticSamplesMode ( ) const

Returns the Diagnostic Samples Mode for this MentalRayRenderSettings object.

Remarks
The default value for DiagnosticSamplesMode == false.

◆ dwgInFields()

virtual OdResult OdDbMentalRayRenderSettings::dwgInFields ( OdDbDwgFiler pFiler)
virtual

Reads the .dwg file data of this object.

Parameters
pFiler[in] Filer object from which data are read.
Returns
Returns the filer status.

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 OdDbRenderSettings.

◆ dwgOutFields()

virtual void OdDbMentalRayRenderSettings::dwgOutFields ( OdDbDwgFiler pFiler) const
virtual

Writes the .dwg file data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are written.
Remarks

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 OdDbRenderSettings.

◆ dxfInFields()

virtual OdResult OdDbMentalRayRenderSettings::dxfInFields ( OdDbDxfFiler pFiler)
virtual

Reads the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer from which data are read.
Returns
Returns the filer status.

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 OdDbRenderSettings.

◆ dxfOutFields()

virtual void OdDbMentalRayRenderSettings::dxfOutFields ( OdDbDxfFiler pFiler) const
virtual

Writes the DXF data of this object.

Parameters
pFiler[in] Pointer to the filer to which data are to be written.
Remarks

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 OdDbRenderSettings.

◆ energyMultiplier()

float OdDbMentalRayRenderSettings::energyMultiplier ( ) const

Returns the magnitude of indirect illumination for this MentalRayRenderSettings object.

Remarks
EnergyMultiplier serves as a volume control for the photon emmision of every light.

◆ exportMIEnabled()

bool OdDbMentalRayRenderSettings::exportMIEnabled ( ) const

Returns true if and only if an MI file is created after rendering for this MentalRayRenderSettings object.

◆ exportMIFileName()

OdString OdDbMentalRayRenderSettings::exportMIFileName ( ) const

Returns the full filename of the exported MI file for this MentalRayRenderSettings object.

◆ exportMIMode()

OdGiMrExportMIMode OdDbMentalRayRenderSettings::exportMIMode ( ) const

Returns the MI mode for this MentalRaySettings object.

◆ fgRayCount()

int OdDbMentalRayRenderSettings::fgRayCount ( ) const

Returns the final gathering ray count for this MentalRayRenderSettings object.

Remarks
In order to compute indirect illumination of a scent, FGRayCount rays are shot into the scene for each final gathering point.

◆ fgSampleRadius()

void OdDbMentalRayRenderSettings::fgSampleRadius ( double &  minRadius,
double &  maxRadius 
) const

Returns the Final Gathering Sample Radii for this MentalRayRenderSettings object.

Parameters
minRadius[out] Receives the minimum radius.
maxRadius[out] Receives the maximum radius.

◆ fgSampleRadiusState()

void OdDbMentalRayRenderSettings::fgSampleRadiusState ( bool &  useMin,
bool &  useMax,
bool &  inPixels 
) const

Returns the the Final Gathering Sample Radius State for this MentalRayRenderSettings object.

Parameters
useMin[out] Receives true if the user-supplied minimum radius is used, false for the default,
useMax[out] Receives true if the user-supplied maximum radius is used, false for the default,
inPixels[out] True if user-supplied radii are in pixels, false for drawing units.

◆ finalGatheringEnabled()

bool OdDbMentalRayRenderSettings::finalGatheringEnabled ( ) const

Returns true if and only if final gathering is enabled for this MentalRayRenderSettings object.

◆ finalGatheringMode()

OdGiMrFinalGatheringMode OdDbMentalRayRenderSettings::finalGatheringMode ( ) const

Returns the final gathering mode for this MentalRaySettings object.

◆ giPhotonsPerLight()

int OdDbMentalRayRenderSettings::giPhotonsPerLight ( ) const

Returns the average the number of photons shot per light for this MentalRayRenderSettings object.

◆ giSampleCount()

int OdDbMentalRayRenderSettings::giSampleCount ( ) const

Returns the number of photons used for computing global illumination near a sample point for this MentalRayRenderSettings object.

◆ giSampleRadius()

double OdDbMentalRayRenderSettings::giSampleRadius ( ) const

Returns the radius for computing the photon count for global illumination for this MentalRayRenderSettings object.

◆ giSampleRadiusEnabled()

bool OdDbMentalRayRenderSettings::giSampleRadiusEnabled ( ) const

Returns true if and only if the GISampleRadius is used for computing global illumination for this MentalRayRenderSettings object.

◆ globalIlluminationEnabled()

bool OdDbMentalRayRenderSettings::globalIlluminationEnabled ( ) const

Returns true if and only if global illumination using photon mapping is enabled for this MentalRayRenderSettings object.

◆ lightLuminanceScale()

double OdDbMentalRayRenderSettings::lightLuminanceScale ( ) const

Returns the light luminance scale factor for this MentalRaySettings object.

◆ memoryLimit()

int OdDbMentalRayRenderSettings::memoryLimit ( ) const

Returns the maximum memory allocated for rendering for this MentalRaySettings object.

◆ ODDB_DECLARE_MEMBERS()

OdDbMentalRayRenderSettings::ODDB_DECLARE_MEMBERS ( OdDbMentalRayRenderSettings  )

◆ operator==()

virtual bool OdDbMentalRayRenderSettings::operator== ( const OdDbMentalRayRenderSettings settings)
virtual

◆ photonTraceDepth()

void OdDbMentalRayRenderSettings::photonTraceDepth ( int &  reflection,
int &  refraction,
int &  sum 
) const

Returns the maximum photon trace depths for this MentalRayRenderSettings object.

Parameters
reflection[out] Receives the maximum number of photon reflections.
refraction[out] Receives the maximum number of photon refractions.
sum[out] Receives the maximum number of photon reflections and refractions.

◆ rayTraceDepth()

void OdDbMentalRayRenderSettings::rayTraceDepth ( int &  reflection,
int &  refraction,
int &  sum 
) const

Returns the maximum ray trace depths for this MentalRayRenderSettings object.

Parameters
reflection[out] Receives the maximum number of ray reflections.
refraction[out] Receives the maximum number of ray refractions.
sum[out] Receives the maximum number of ray reflections and refractions.

◆ rayTracingEnabled()

bool OdDbMentalRayRenderSettings::rayTracingEnabled ( ) const

Returns true if and only if ray tracing is enabled for this MentalRayRenderSettings object.

◆ sampling()

void OdDbMentalRayRenderSettings::sampling ( int &  min,
int &  max 
) const

Returns the minimum and maximum sampling rates when rendering a pixel for this MentalRayRenderSettings object.

Parameters
min[out] Receives the minimum sampling rate. [-3 .. 5]
max[out] Receives the maximum sampling rate. [-3 .. 5]
Remarks
Negative values enable subsampling. -3 specifies one sample per 64 pixels 5 specfies one sample per 1028 pixels The default value of min == -1 The default value of max == 0

◆ samplingContrastColor()

void OdDbMentalRayRenderSettings::samplingContrastColor ( float &  red,
float &  green,
float &  blue,
float &  alpha 
) const

Returns the SamplingContrastColor for this MentalRayRenderSettings object.

Parameters
red[out] Receives the red color channel threshold.
green[out] Receives the green channel threshold.
blue[out] Receives the blue channel threshold.
alpha[out] Receives the alpha channel threshold.

◆ SamplingFilter()

void OdDbMentalRayRenderSettings::SamplingFilter ( OdGiMrFilter filter,
double &  width,
double &  height 
) const

Returns the sampling filter parameters for this MentalRayRenderSettings object.

Parameters
filter[out] Receives the filter method.
width[out] Receives the width of the filter area in pixels.
height[out] Receives the height of the filter area in pixels.

◆ setDiagnosticBSPMode()

void OdDbMentalRayRenderSettings::setDiagnosticBSPMode ( OdGiMrDiagnosticBSPMode  diagnosticBSPMode)

Sets the Diagnostic BSP Mode for this MentalRayRenderSettings object.

Parameters
diagnosticBSPMode[in] Diagnostic BSP Mode.
Remarks
The default value for DiagnosticBSPMode is krDepth.

◆ setDiagnosticGridMode()

OdResult OdDbMentalRayRenderSettings::setDiagnosticGridMode ( OdGiMrDiagnosticGridMode  diagnosticGridMode,
float  gridSpace 
)

Sets the Diagnostic Grid for this MentalRayRenderSettings object.

Parameters
diagnosticGridMode[in] Coordinate system for the grid.
gridSpace[in] Distance between grid lines.
Remarks
The default mode is krObject, the default grid space is 10.0.

◆ setDiagnosticMode()

void OdDbMentalRayRenderSettings::setDiagnosticMode ( OdGiMrDiagnosticMode  diagnosticMode)

Sets the diagnostic image rendering mode for this MentalRayRenderSettings object.

Parameters
diagnosticMode[in] Diagnostic mode.

◆ setDiagnosticPhotonMode()

void OdDbMentalRayRenderSettings::setDiagnosticPhotonMode ( OdGiMrDiagnosticPhotonMode  diagnosticPhotonMode)

Sets the Diagnostic Photon Mode for this MentalRayRenderSettings object.

Parameters
diagnosticPhotonMode[in] Diagnostic Photon Mode.
Remarks
The default value for DiagnosticPhotonMode == krDensity.

◆ setDiagnosticSamplesMode()

void OdDbMentalRayRenderSettings::setDiagnosticSamplesMode ( bool  diagnosticSamplesMode)

Controls the Diagnostic Samples Mode for this MentalRayRenderSettings object.

Parameters
diagnosticSamplesMode[in] Diagnostic Samples Mode
Remarks
The default value for DiagnosticSamplesMode == false.

◆ setEnergyMultiplier()

OdResult OdDbMentalRayRenderSettings::setEnergyMultiplier ( float  energyMultiplier)

Sets the magnitude of indirect illumination for this MentalRayRenderSettings object.

Parameters
energyMultiplier[in] Energy multiplier.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The default value for EnergyMultiplier is 1.0.

EnergyMultiplier serves as a volume control for the photon emmision of every light.

◆ setExportMIEnabled()

void OdDbMentalRayRenderSettings::setExportMIEnabled ( bool  exportMIEnabled)

Controls the creation of an MI file after rendering for this MentalRayRenderSettings object.

Parameters
exportMIEnabled[in] Export MI Enabled.
Remarks
The default value for ExportMIEnabled == false.
See also
setExportMIFileName

◆ setExportMIFileName()

OdResult OdDbMentalRayRenderSettings::setExportMIFileName ( const OdString filename)

Sets the full filename of the exported MI file for this MentalRayRenderSettings object.

Parameters
filename[in] Filename.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
If the ExportMIFileName is blank, no MI file is associated with this MentalRayRenderSettings object.

The default value for ExportMIFileName is blank.

◆ setExportMIMode()

OdResult OdDbMentalRayRenderSettings::setExportMIMode ( OdGiMrExportMIMode  eExportMIMode)

Sets the MI mode for this MentalRaySettings object.

Parameters
eExportMIMode[in] MI mode.
Remarks
The default value for MI mode is krExportMIOff.

◆ setFGRadiusState()

void OdDbMentalRayRenderSettings::setFGRadiusState ( bool  useMin,
bool  useMax,
bool  inPixels 
)

Controls the Final Gathering Sample Radius State for this MentalRayRenderSettings object.

Parameters
useMin[in] True to use user-supplied minimum radius, false for default radius.
useMax[in] True to use user-supplied maximum radius, false for default radius.
inPixels[in] True if user-supplied radii are in pixels, false for drawing units.
Remarks
The default values for all parameters == false.

◆ setFGRayCount()

OdResult OdDbMentalRayRenderSettings::setFGRayCount ( int  fgRayCount)

Sets the final gathering ray count for this MentalRayRenderSettings object.

Parameters
fgRayCount[in] Final gathering ray count.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
In order to compute indirect illumination of a scent, FGRayCount rays are shot into the scene for each final gathering point.

The default value for FGRayCount = 1000.

◆ setFGSampleRadius()

OdResult OdDbMentalRayRenderSettings::setFGSampleRadius ( double  minRadius,
double  maxRadius 
)

Sets the Final Gathering Sample Radii for this MentalRayRenderSettings object.

Parameters
minRadius[in] Minimum radius.
maxRadius[in] Maximum radius.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
Default values are are 0.1 for drawing units, and 0.5 for pixels.

minRadius <= maxRadius

◆ setFinalGatheringEnabled()

void OdDbMentalRayRenderSettings::setFinalGatheringEnabled ( bool  finalGatheringEnabled)

Controls the application of final gathering for this MentalRayRenderSettings object.

Parameters
finalGatheringEnabled[in] Controls final gathering.
Remarks
Final gathering permits indirect lighting effects such as color-bleeding.

◆ setFinalGatheringMode()

OdResult OdDbMentalRayRenderSettings::setFinalGatheringMode ( OdGiMrFinalGatheringMode  mode)

Sets the final gathering mode for this MentalRaySettings object.

Parameters
mode[in] Final gathering mode.
Remarks
The default value for final gathering mode is krFinalGatherAuto.

◆ setGIPhotonsPerLight()

OdResult OdDbMentalRayRenderSettings::setGIPhotonsPerLight ( int  numPhotons)

Sets the average the number of photons shot per light for this MentalRayRenderSettings object.

Parameters
numPhotons[in] Number of photons.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The default value for GIPhotonsPerLight == 10,000.

◆ setGISampleCount()

OdResult OdDbMentalRayRenderSettings::setGISampleCount ( int  numPhotons)

Sets the number of photons used for computing global illumination near a sample point for this MentalRayRenderSettings object.

Parameters
numPhotons[in] Number of photons.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The default value for GISampleCount == 500
See also
setGISampleRadius setGISampleRadiusEnabled

◆ setGISampleRadius()

OdResult OdDbMentalRayRenderSettings::setGISampleRadius ( double  radius)

Sets the radius for computing the photon count for global illumination for this MentalRayRenderSettings object.

Parameters
radius[in] Sample radius.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The default value for GISampleRadius == 1.0.
See also
setGISampleCount setGISampleRadiusEnabled

◆ setGISampleRadiusEnabled()

void OdDbMentalRayRenderSettings::setGISampleRadiusEnabled ( bool  giSampleRadiusEnabled)

Controls the use of the GISampleRadius for computing global illumination for this MentalRayRenderSettings object.

Parameters
giSampleRadiusEnabled[in] Controls GISampleRadiusEnabled.
Remarks
If GISampleRadiusEnabled == false, a default, the model space extents are used to computer a default radius.

The default value of GISampleRadiusEnabled == false.

◆ setGlobalIlluminationEnabled()

void OdDbMentalRayRenderSettings::setGlobalIlluminationEnabled ( bool  globalIlluminationEnabled)

Controls global illumination using photon mapping for this MentalRayRenderSettings object.

Parameters
globalIlluminationEnabled[in] Controls GlobalIllumination.
Remarks
Global illumination permits indirect lighting effects such as color-bleeding.

The default value of GlobalIllumination is false.

◆ setLightLuminanceScale()

OdResult OdDbMentalRayRenderSettings::setLightLuminanceScale ( double  fLuminance)

Sets the light luminance scale factor for this MentalRaySettings object.

Parameters
fLuminance[in] Luminance scale factor.
Remarks
The default value for light luminance scale factor is 1500.0.

◆ setMemoryLimit()

OdResult OdDbMentalRayRenderSettings::setMemoryLimit ( int  memoryLimit)

Sets the maximum memory allocated for rendering for this MentalRaySettings object.

Parameters
memoryLimit[in] Memory limit (MB) [>= 128]
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The renderer will decrease performance so as to stay below the memory limit.

The default value for MemoryLimit is 1048.

◆ setPhotonTraceDepth()

OdResult OdDbMentalRayRenderSettings::setPhotonTraceDepth ( int  reflection,
int  refraction,
int  sum 
)

Sets the maximum photon trace depths for this MentalRayRenderSettings object.

Parameters
reflection[in] Maximum number of photon reflections.
refraction[in] Maximum number of photon refractions.
sum[in] Maximum number of photon reflections and refractions.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The defaults are as follows:

Default reflection 5 refraction 5 sum 5

◆ setRayTraceDepth()

OdResult OdDbMentalRayRenderSettings::setRayTraceDepth ( int  reflection,
int  refraction,
int  sum 
)

Sets the maximum ray trace depths for this MentalRayRenderSettings object.

Parameters
reflection[in] Maximum number of ray reflections.
refraction[in] Maximum number of ray refractions.
sum[in] Maximum number of ray reflections and refractions.
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The defaults are as follows:

Default reflection 2 refraction 2 sum 4

◆ setRayTracingEnabled()

void OdDbMentalRayRenderSettings::setRayTracingEnabled ( bool  rayTracingEnabled)

Controls ray tracing for this MentalRayRenderSettings object.

Parameters
rayTracingEnabled[in] Controls ray tracing.
Remarks
The default value of RayTracing == true;

◆ setSampling()

OdResult OdDbMentalRayRenderSettings::setSampling ( int  min,
int  max 
)

Controls the minimum and maximum sampling rates when rendering a pixel for this MentalRayRenderSettings object.

Parameters
min[in] Minimum sampling rate. [-3 .. 5]
max[in] Maximum sampling rate. [-3 .. 5]
Returns
Returns eOk if successful, or an appropriate error code if not.

Negative values enable subsampling. -3 specifies one sample per 64 pixels 5 specfies one sample per 1028 pixels The default value of min == -1 The default value of max == 0 Min <= Max

◆ setSamplingContrastColor()

OdResult OdDbMentalRayRenderSettings::setSamplingContrastColor ( float  red,
float  green,
float  blue,
float  alpha 
)

Sets the SamplingContrastColor for this MentalRayRenderSettings object.

Parameters
red[in] Red color channel threshold. [0.0 .. 1.0]
green[in] Green channel threshold. [0.0 .. 1.0]
blue[in] Blue channel threshold. [0.0 .. 1.0]
alpha[in] Alpha channel threshold. [0.0 .. 1.0]
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
Additional color camples will be taken if the difference between a sample and its surrounding samples exceeds the SamplingContrastColor.

The default value for each color channel is 1.0.

◆ setSamplingFilter()

OdResult OdDbMentalRayRenderSettings::setSamplingFilter ( OdGiMrFilter  filter,
double  width,
double  height 
)

Sets the sampling filter parameters for this MentalRayRenderSettings object.

Parameters
filter[in] Filter method.
width[in] Width of the filter area in pixels. [0.0 .. 8.0]
height[in] Height of the filter area in pixels. [0.0 .. 8.0]
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
The defaults are as follows:

Default filter kBox width 1.0 height 1.0

◆ setShadowMapsEnabled()

void OdDbMentalRayRenderSettings::setShadowMapsEnabled ( bool  shadowMapsEnabled)

Controls the generation of shadow maps for this MentalRayRenderSettings object.

Parameters
shadowMapsEnabled[in] Controls shadow maps.
Remarks
The default value of ShadowMapsEnabled == true;

◆ setShadowMode()

void OdDbMentalRayRenderSettings::setShadowMode ( OdGiMrShadowMode  shadowMode)

Sets the method of computing ray-traced shadows for this MentalRayRenderSettings object.

Remarks
The default value for ShadowMode == krSimple.

◆ setShadowSamplingMultiplier()

OdResult OdDbMentalRayRenderSettings::setShadowSamplingMultiplier ( ShadowSamplingMultiplier  multiplier)

Sets the shadow sampling multiplier for this MentalRaySettings object.

Parameters
multiplier[in] Shadow sampling multiplier.
Remarks
The default value for shadow sampling multiplier is kSamplingMultiplierOne.

◆ setTileOrder()

void OdDbMentalRayRenderSettings::setTileOrder ( OdGiMrTileOrder  tileOrder)

Sets the tile order used in tile rendering for this MentalRaySettings object.

Parameters
tileOrder[in] Tile order.
Remarks
The default value for TileOrder is krHilbert.

◆ setTileSize()

OdResult OdDbMentalRayRenderSettings::setTileSize ( int  tileSize)

Sets the image tile size used in rendering for this MentalRaySettings object.

Parameters
tileSize[in] Tile size. [4..512]
Returns
Returns eOk if successful, or an appropriate error code if not.
Remarks
Larger values decrease rendering time and update frequency during rendering.

The default value for TileSize is 32.

◆ shadowMapsEnabled()

bool OdDbMentalRayRenderSettings::shadowMapsEnabled ( ) const

Returns true if and only if shadow maps are generated for this MentalRayRenderSettings object.

◆ shadowMode()

OdGiMrShadowMode OdDbMentalRayRenderSettings::shadowMode ( ) const

Returns the method of computing ray-traced shadows for this MentalRayRenderSettings object.

◆ shadowSamplingMultiplier()

ShadowSamplingMultiplier OdDbMentalRayRenderSettings::shadowSamplingMultiplier ( ) const

Returns the shadow sampling multiplier for this MentalRaySettings object.

◆ subSetAttributes()

virtual OdUInt32 OdDbMentalRayRenderSettings::subSetAttributes ( OdGiDrawableTraits pTraits) const
virtual

Sets the values of this object's subentity traits, and returns with the calling object's subentity traits.

Parameters
pTraits[in] Pointer to the OdGiDrawableTraits object to be set.
Remarks
When overriding subSetAttributes(), you must OR (|) the return value of <base class>::subSetAttributes(pTraits) with any flags you add.

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 OdDbRenderSettings.

◆ tileOrder()

OdGiMrTileOrder OdDbMentalRayRenderSettings::tileOrder ( ) const

Returns the tile order used in tile rendering for this MentalRaySettings object.

◆ tileSize()

int OdDbMentalRayRenderSettings::tileSize ( ) const

Returns the image tile size used in rendering for this MentalRaySettings object.


The documentation for this class was generated from the following file: