Rhino C++ API
8.14
|
#include <opennurbs_3dm_settings.h>
Public Types | |
enum | EnvironmentPurpose : unsigned int { EnvironmentPurpose::Standard, EnvironmentPurpose::ForRendering } |
enum | EnvironmentUsage : unsigned int { EnvironmentUsage::Background, EnvironmentUsage::Reflection, EnvironmentUsage::Skylighting } |
Access to information about which environments are used for rendering. More... | |
enum | RenderingSources : unsigned int { RenderingSources::ActiveViewport, RenderingSources::SpecificViewport, RenderingSources::NamedView, RenderingSources::SnapShot } |
Public Types inherited from ON_Object | |
enum | UserDataConflictResolution : unsigned char { UserDataConflictResolution::destination_object = 0, UserDataConflictResolution::source_object = 1, UserDataConflictResolution::source_copycount_gt = 2, UserDataConflictResolution::source_copycount_ge = 3, UserDataConflictResolution::destination_copycount_gt = 4, UserDataConflictResolution::destination_copycount_ge = 5, UserDataConflictResolution::delete_item = 6 } |
Public Member Functions | |
ON_3dmRenderSettings ()=default | |
ON_3dmRenderSettings (const ON_3dmRenderSettings &) | |
virtual | ~ON_3dmRenderSettings () |
class ON_Dithering & | Dithering (void) |
Access to Dithering information. More... | |
const ON_Dithering & | Dithering (void) const |
void | Dump (ON_TextLog &text_log) const override |
class ON_GroundPlane & | GroundPlane (void) |
Access to Ground Plane information. More... | |
const ON_GroundPlane & | GroundPlane (void) const |
void | InvalidateCaches (void) const |
Invalidate any caches in the render settings. More... | |
class ON_LinearWorkflow & | LinearWorkflow (void) |
Access to Linear Workflow information. More... | |
const ON_LinearWorkflow & | LinearWorkflow (void) const |
ON_wString | NamedView (void) const |
ON_3dmRenderSettings & | operator= (const ON_3dmRenderSettings &) |
class ON_PostEffects & | PostEffects (void) |
Access to Post Effect information. More... | |
const ON_PostEffects & | PostEffects (void) const |
bool | Read (ON_BinaryArchive &) override |
class ON_RenderChannels & | RenderChannels (void) |
Access to Render Channels information. More... | |
const ON_RenderChannels & | RenderChannels (void) const |
ON_UUID | RenderEnvironmentId (EnvironmentUsage usage, EnvironmentPurpose purpose) const |
bool | RenderEnvironmentOverride (EnvironmentUsage usage) const |
RenderingSources | RenderingSource (void) const |
class ON_SafeFrame & | SafeFrame (void) |
Access to Safe Frame information. More... | |
const ON_SafeFrame & | SafeFrame (void) const |
bool | ScaleBackgroundToFit () const |
void | SetNamedView (const ON_wString &) |
void | SetRenderEnvironmentId (EnvironmentUsage usage, const ON_UUID &id) |
Sets the id of the rendering environment for a particular usage. More... | |
void | SetRenderEnvironmentOverride (EnvironmentUsage usage, bool on) |
void | SetRenderingSource (RenderingSources) |
void | SetScaleBackgroundToFit (bool bScaleBackgroundToFit) |
void | SetSnapshot (const ON_wString &) |
void | SetSpecificViewport (const ON_wString &) |
class ON_Skylight & | Skylight (void) |
Access to Skylight information. More... | |
const ON_Skylight & | Skylight (void) const |
ON_wString | Snapshot (void) const |
ON_wString | SpecificViewport (void) const |
class ON_Sun & | Sun (void) |
Access to Sun information. More... | |
const ON_Sun & | Sun (void) const |
bool | Write (ON_BinaryArchive &) const override |
Public Member Functions inherited from ON_Object | |
ON_Object () ON_NOEXCEPT | |
ON_Object (const ON_Object &) | |
virtual | ~ON_Object () |
virtual ON_AggregateComponentStatus | AggregateComponentStatus () const |
bool | AttachUserData (class ON_UserData *pUserData) |
unsigned int | ClearAllComponentStates () const |
virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
virtual unsigned int | ClearComponentStates (ON_ComponentStatus states_to_clear) const |
void | CopyUserData (const ON_Object &source_object) |
unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
virtual ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
virtual bool | DeleteComponents (const ON_COMPONENT_INDEX *ci_list, size_t ci_count) |
virtual void | DestroyRuntimeCache (bool bDelete=true) |
bool | DetachUserData (class ON_UserData *pUserData) |
void | EmergencyDestroy () |
class ON_UserData * | FirstUserData () const |
virtual unsigned int | GetComponentsWithSetStates (ON_ComponentStatus states_filter, bool bAllEqualStates, ON_SimpleArray< ON_COMPONENT_INDEX > &components) const |
class ON_UserData * | GetUserData (const ON_UUID &userdata_uuid) const |
bool | GetUserString (const wchar_t *key, ON_wString &string_value) const |
int | GetUserStringKeys (ON_ClassArray< ON_wString > &user_string_keys) const |
int | GetUserStrings (ON_ClassArray< ON_UserString > &user_strings) const |
bool | IsCorrupt (bool bRepair, bool bSilentError, class ON_TextLog *text_log) const |
bool | IsKindOf (const ON_ClassId *pClassId) const |
virtual bool | IsValid (class ON_TextLog *text_log=nullptr) const |
virtual void | MarkAggregateComponentStatusAsNotCurrent () const |
virtual void | MemoryRelocate () |
virtual ON_UUID | ModelObjectId () const |
void | MoveUserData (ON_Object &source_object) |
unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
virtual ON::object_type | ObjectType () const |
ON_Object & | operator= (const ON_Object &) |
void | PurgeUserData () |
virtual unsigned int | SetComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_set) const |
virtual unsigned int | SetComponentStatus (ON_COMPONENT_INDEX component_index, ON_ComponentStatus status_to_copy) const |
bool | SetUserString (const wchar_t *key, const wchar_t *string_value) |
int | SetUserStrings (int count, const ON_UserString *user_strings, bool bReplace) |
virtual unsigned int | SizeOf () const |
bool | ThisIsNullptr (bool bSilentError) const |
void | TransformUserData (const class ON_Xform &xform) |
virtual bool | UpdateReferencedComponents (const class ON_ComponentManifest &source_manifest, const class ON_ComponentManifest &destination_manifest, const class ON_ManifestMap &manifest_map) |
int | UserStringCount () const |
Static Public Attributes | |
static const ON_3dmRenderSettings | Default |
Friends | |
class | ON_3dmRenderSettingsPrivate |
class | ONX_ModelPrivate |
< For internal use only. More... | |
|
strong |
|
strong |
|
strong |
New for V6, rendering source (render directly from a NamedView or Snapshot) https://mcneel.myjetbrains.com/youtrack/issue/RH-39593
|
default |
|
virtual |
ON_3dmRenderSettings::ON_3dmRenderSettings | ( | const ON_3dmRenderSettings & | ) |
class ON_Dithering& ON_3dmRenderSettings::Dithering | ( | void | ) |
Access to Dithering information.
const ON_Dithering& ON_3dmRenderSettings::Dithering | ( | void | ) | const |
|
overridevirtual |
class ON_GroundPlane& ON_3dmRenderSettings::GroundPlane | ( | void | ) |
Access to Ground Plane information.
const ON_GroundPlane& ON_3dmRenderSettings::GroundPlane | ( | void | ) | const |
void ON_3dmRenderSettings::InvalidateCaches | ( | void | ) | const |
Invalidate any caches in the render settings.
class ON_LinearWorkflow& ON_3dmRenderSettings::LinearWorkflow | ( | void | ) |
Access to Linear Workflow information.
const ON_LinearWorkflow& ON_3dmRenderSettings::LinearWorkflow | ( | void | ) | const |
ON_wString ON_3dmRenderSettings::NamedView | ( | void | ) | const |
ON_3dmRenderSettings& ON_3dmRenderSettings::operator= | ( | const ON_3dmRenderSettings & | ) |
class ON_PostEffects& ON_3dmRenderSettings::PostEffects | ( | void | ) |
Access to Post Effect information.
const ON_PostEffects& ON_3dmRenderSettings::PostEffects | ( | void | ) | const |
|
overridevirtual |
Description: Low level archive writing tool used by ON_BinaryArchive::ReadObject(). Parameters: binary_archive - archive to read from Returns: Returns true if the read is successful. Remarks: Use ON_BinaryArchive::ReadObject() to read objects. This Read() function should read the objects definition back into its data members.
The default implementation of this virtual function returns false and does nothing.
Reimplemented from ON_Object.
class ON_RenderChannels& ON_3dmRenderSettings::RenderChannels | ( | void | ) |
Access to Render Channels information.
const ON_RenderChannels& ON_3dmRenderSettings::RenderChannels | ( | void | ) | const |
ON_UUID ON_3dmRenderSettings::RenderEnvironmentId | ( | EnvironmentUsage | usage, |
EnvironmentPurpose | purpose | ||
) | const |
Returns the id of the rendering environment for a particular usage. Param 'purpose' specifies the purpose the environment will be used for:
bool ON_3dmRenderSettings::RenderEnvironmentOverride | ( | EnvironmentUsage | usage | ) | const |
Returns whether or not the rendering environment for a particular usage is overriding the background environment. Only really makes sense for usage Reflection and Skylighting, but for convenience, it also works for usage Background by checking if the background style is set to Environment.
RenderingSources ON_3dmRenderSettings::RenderingSource | ( | void | ) | const |
class ON_SafeFrame& ON_3dmRenderSettings::SafeFrame | ( | void | ) |
Access to Safe Frame information.
const ON_SafeFrame& ON_3dmRenderSettings::SafeFrame | ( | void | ) | const |
bool ON_3dmRenderSettings::ScaleBackgroundToFit | ( | ) | const |
void ON_3dmRenderSettings::SetNamedView | ( | const ON_wString & | ) |
void ON_3dmRenderSettings::SetRenderEnvironmentId | ( | EnvironmentUsage | usage, |
const ON_UUID & | id | ||
) |
Sets the id of the rendering environment for a particular usage.
void ON_3dmRenderSettings::SetRenderEnvironmentOverride | ( | EnvironmentUsage | usage, |
bool | on | ||
) |
Sets whether or not the rendering environment for a particular usage is overriding the background environment. Only works for usage Reflection and Skylighting.
void ON_3dmRenderSettings::SetRenderingSource | ( | RenderingSources | ) |
void ON_3dmRenderSettings::SetScaleBackgroundToFit | ( | bool | bScaleBackgroundToFit | ) |
void ON_3dmRenderSettings::SetSnapshot | ( | const ON_wString & | ) |
void ON_3dmRenderSettings::SetSpecificViewport | ( | const ON_wString & | ) |
class ON_Skylight& ON_3dmRenderSettings::Skylight | ( | void | ) |
Access to Skylight information.
const ON_Skylight& ON_3dmRenderSettings::Skylight | ( | void | ) | const |
ON_wString ON_3dmRenderSettings::Snapshot | ( | void | ) | const |
ON_wString ON_3dmRenderSettings::SpecificViewport | ( | void | ) | const |
class ON_Sun& ON_3dmRenderSettings::Sun | ( | void | ) |
Access to Sun information.
const ON_Sun& ON_3dmRenderSettings::Sun | ( | void | ) | const |
|
overridevirtual |
Description: Low level archive writing tool used by ON_BinaryArchive::WriteObject(). Parameters: binary_archive - archive to write to Returns: Returns true if the write is successful. Remarks: Use ON_BinaryArchive::WriteObject() to write objects. This Write() function should just write the specific definition of this object. It should not write and any chunk typecode or length information.
The default implementation of this virtual function returns false and does nothing.
Reimplemented from ON_Object.
|
friend |
|
friend |
< For internal use only.
|
static |
ON_Color ON_3dmRenderSettings::m_ambient_light = ON_Color::Black |
int ON_3dmRenderSettings::m_antialias_style = 1 |
0 = none, 1 = normal, 2 = medium, 3 = best
ON_wString ON_3dmRenderSettings::m_background_bitmap_filename |
ON_Color ON_3dmRenderSettings::m_background_bottom_color = ON_Color::Gray160 |
ON_Color ON_3dmRenderSettings::m_background_color = ON_Color::White |
m_background_color was changed from ON_Color::Gray160 to ON_Color::White for "white studio" look. m_background_color = Top color of gradient...
int ON_3dmRenderSettings::m_background_style = 0 |
0 = solid color, 1 = "wallpaper" image, 2 = Gradient, 3 = Environment
bool ON_3dmRenderSettings::m_bCustomImageSize = false |
Custom image size: If m_bCustomImageSize is true, then the image pixel size is m_image_width X m_image_height pixels. If m_bCustomImageSize is false, then the image pixel size is the size of the viewport being rendered.
bool ON_3dmRenderSettings::m_bDepthCue = false |
bool ON_3dmRenderSettings::m_bFlatShade = false |
bool ON_3dmRenderSettings::m_bForceViewportAspectRatio = false |
Force viewport aspect ratio: If m_bCustomImageSize is true and m_bForceViewportAspectRatio is true then the image height should be calculated by multiplying the m_image_width by the viewport aspect ratio. Note that this might be affected by m_rendering_source In this case, m_image_height should not be used.
bool ON_3dmRenderSettings::m_bRenderAnnotation = false |
bool ON_3dmRenderSettings::m_bRenderBackfaces = true |
bool ON_3dmRenderSettings::m_bRenderCurves = false |
bool ON_3dmRenderSettings::m_bRenderIsoparams = false |
bool ON_3dmRenderSettings::m_bRenderMeshEdges = false |
bool ON_3dmRenderSettings::m_bRenderPoints = false |
bool ON_3dmRenderSettings::m_bScaleBackgroundToFit = false |
bool ON_3dmRenderSettings::m_bTransparentBackground = false |
bool ON_3dmRenderSettings::m_bUseHiddenLights = false |
bool ON_3dmRenderSettings::m_bUsesAmbientAttr = true |
Flags that are used to determine which render settings a render plugin uses, and which ones the display pipeline should use. Note: Render plugins set these, and they don't need to persist in the document...Also, when set, they turn OFF their corresponding setting in the Display Attributes Manager's UI pages for "Rendered" mode.
bool ON_3dmRenderSettings::m_bUsesAnnotationAttr = true |
bool ON_3dmRenderSettings::m_bUsesBackfaceAttr = false |
bool ON_3dmRenderSettings::m_bUsesBackgroundAttr = true |
bool ON_3dmRenderSettings::m_bUsesCurvesAttr = true |
bool ON_3dmRenderSettings::m_bUsesHiddenLightsAttr = true |
bool ON_3dmRenderSettings::m_bUsesIsoparmsAttr = true |
bool ON_3dmRenderSettings::m_bUsesMeshEdgesAttr = false |
bool ON_3dmRenderSettings::m_bUsesPointsAttr = false |
ON_UUID ON_3dmRenderSettings::m_embedded_image_file_id = ON_nil_uuid |
If m_background_bitmap_filename is not empty, the file cannot be found, and m_embedded_file_id identifies an embedded image file in the model, then that file will be used as the background bitmap.
double ON_3dmRenderSettings::m_image_dpi = 72.0 |
Number of dots/inch (dots=pixels) to use when printing and saving bitmaps. The default is 72.0 dots/inch.
int ON_3dmRenderSettings::m_image_height = 600 |
image height in pixels
ON::LengthUnitSystem ON_3dmRenderSettings::m_image_us = ON::LengthUnitSystem::Inches |
unit system to use when converting image pixel size and dpi information into a print size. Default = inches
int ON_3dmRenderSettings::m_image_width = 800 |
image width in pixels
int ON_3dmRenderSettings::m_shadowmap_height = 1000 |
double ON_3dmRenderSettings::m_shadowmap_offset = 0.75 |
int ON_3dmRenderSettings::m_shadowmap_style = 1 |
0 = none, 1 = normal, 2 = best
int ON_3dmRenderSettings::m_shadowmap_width = 1000 |