#include <opennurbs_3dm_settings.h>
Public Types | |
| 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 &)=default | |
| ~ON_3dmRenderSettings ()=default | |
| void | Dump (ON_TextLog &text_log) const override |
| ON_wString | NamedView (void) const |
| ON_3dmRenderSettings & | operator= (const ON_3dmRenderSettings &)=default |
| bool | Read (ON_BinaryArchive &) override |
| RenderingSources | RenderingSource (void) const |
| bool | ScaleBackgroundToFit () const |
| void | SetNamedView (const ON_wString &) |
| void | SetRenderingSource (RenderingSources) |
| void | SetScaleBackgroundToFit (bool bScaleBackgroundToFit) |
| void | SetSnapshot (const ON_wString &) |
| void | SetSpecificViewport (const ON_wString &) |
| ON_wString | Snapshot (void) const |
| ON_wString | SpecificViewport (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_ComponentStatus states_to_clear) const |
| virtual unsigned int | ClearComponentStates (ON_COMPONENT_INDEX component_index, ON_ComponentStatus states_to_clear) const |
| unsigned int | CopyUserData (const ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution) |
| void | CopyUserData (const ON_Object &source_object) |
| 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 | 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 |
| unsigned int | MoveUserData (ON_Object &source_object, ON_UUID source_userdata_item_id, ON_Object::UserDataConflictResolution userdata_conflict_resolution, bool bDeleteAllSourceItems) |
| void | MoveUserData (ON_Object &source_object) |
| 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 |
| 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 |
|
strong |
New for V6, rendering source (render directly from a NamedView or Snapshot) https://mcneel.myjetbrains.com/youtrack/issue/RH-39593
|
default |
|
default |
|
default |
|
overridevirtual |
| ON_wString ON_3dmRenderSettings::NamedView | ( | void | ) | const |
|
default |
|
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.
| RenderingSources ON_3dmRenderSettings::RenderingSource | ( | void | ) | const |
| bool ON_3dmRenderSettings::ScaleBackgroundToFit | ( | ) | const |
| void ON_3dmRenderSettings::SetNamedView | ( | const ON_wString & | ) |
| 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 & | ) |
| ON_wString ON_3dmRenderSettings::Snapshot | ( | void | ) | const |
| ON_wString ON_3dmRenderSettings::SpecificViewport | ( | 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.
|
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 identifes 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 |