Rhino C++ API  9.0
Public Member Functions | Public Attributes | List of all members
ON_3dmView Class Reference

#include <opennurbs_3dm_settings.h>

Public Member Functions

 ON_3dmView ()
 
 ON_3dmView (const ON_3dmView &)
 
 ~ON_3dmView ()
 
void AddToPageViewGroup (const ON_SimpleArray< int > &group_list)
 
void AddToPageViewGroup (int group_index)
 
void Default ()
 
ON_wString Description () const
 description More...
 
void Dump (ON_TextLog &text_log) const
 
double FocalBlurAperture (void) const
 
double FocalBlurDistance (void) const
 
double FocalBlurJitter (void) const
 
ON_FocalBlurModes FocalBlurMode (void) const
 
unsigned int FocalBlurSampleCount (void) const
 
bool IsInPageViewGroup (int group_index) const
 
bool IsValid (ON_TextLog *text_log=0) const
 
ON_3dmViewoperator= (const ON_3dmView &)
 
int PageViewGroupCount () const
 Focal blur settings - per view for renderers. More...
 
int PageViewGroupList (ON_SimpleArray< int > &group_list) const
 
const ON_SimpleArray< ON_2dex > & PageViewGroups () const
 
int PageViewGroupSortIndex (int group_index) const
 
bool Read (ON_BinaryArchive &)
 
void RemoveFromAllPageViewGroups ()
 
void RemoveFromPageViewGroup (int group_index)
 
ON_2iSize RenderingSize () const
 
ON::ViewSectionBehavior SectionBehavior () const
 
void SetDescription (const wchar_t *description)
 
void SetFocalBlurAperture (double d)
 
void SetFocalBlurDistance (double d)
 
void SetFocalBlurJitter (double d)
 
void SetFocalBlurMode (ON_FocalBlurModes m)
 
void SetFocalBlurSampleCount (unsigned int count)
 
void SetPageViewGroups (const ON_SimpleArray< ON_2dex > &groups)
 
void SetPageViewGroupSortIndex (int group_index, int sort_index)
 
void SetRenderingSize (const ON_2iSize &size)
 
void SetSectionBehavior (ON::ViewSectionBehavior behavior)
 
bool SetTargetPoint (ON_3dPoint target_point)
 
ON_3dPoint TargetPoint () const
 
bool Write (ON_BinaryArchive &) const
 

Public Attributes

bool m_bLockedProjection
 
bool m_bShowConstructionAxes
 
bool m_bShowConstructionGrid
 
bool m_bShowConstructionZAxis
 
bool m_bShowWorldAxes
 world axes icon More...
 
ON_SimpleArray< ON_ClippingPlaneInfom_clipping_planes
 
ON_3dmConstructionPlane m_cplane
 
ON_UUID m_display_mode_id
 
ON_wString m_name
 name on window More...
 
ON_UUID m_named_view_id
 
ON_3dmPageSettings m_page_settings
 
ON_3dmViewPosition m_position
 
ON_3dmViewTraceImage m_trace_image
 tracing image More...
 
ON::view_type m_view_type
 model, page, nested or uveditor More...
 
ON_Viewport m_vp
 view projection information More...
 
ON_3dmWallpaperImage m_wallpaper_image
 wallpaper image More...
 

Constructor & Destructor Documentation

◆ ON_3dmView() [1/2]

ON_3dmView::ON_3dmView ( )

◆ ~ON_3dmView()

ON_3dmView::~ON_3dmView ( )

◆ ON_3dmView() [2/2]

ON_3dmView::ON_3dmView ( const ON_3dmView )

Member Function Documentation

◆ AddToPageViewGroup() [1/2]

void ON_3dmView::AddToPageViewGroup ( const ON_SimpleArray< int > &  group_list)

◆ AddToPageViewGroup() [2/2]

void ON_3dmView::AddToPageViewGroup ( int  group_index)

◆ Default()

void ON_3dmView::Default ( )

◆ Description()

ON_wString ON_3dmView::Description ( ) const

description

◆ Dump()

void ON_3dmView::Dump ( ON_TextLog text_log) const

◆ FocalBlurAperture()

double ON_3dmView::FocalBlurAperture ( void  ) const

◆ FocalBlurDistance()

double ON_3dmView::FocalBlurDistance ( void  ) const

◆ FocalBlurJitter()

double ON_3dmView::FocalBlurJitter ( void  ) const

◆ FocalBlurMode()

ON_FocalBlurModes ON_3dmView::FocalBlurMode ( void  ) const

◆ FocalBlurSampleCount()

unsigned int ON_3dmView::FocalBlurSampleCount ( void  ) const

◆ IsInPageViewGroup()

bool ON_3dmView::IsInPageViewGroup ( int  group_index) const

◆ IsValid()

bool ON_3dmView::IsValid ( ON_TextLog text_log = 0) const

◆ operator=()

ON_3dmView& ON_3dmView::operator= ( const ON_3dmView )

◆ PageViewGroupCount()

int ON_3dmView::PageViewGroupCount ( ) const

Focal blur settings - per view for renderers.

pageview group interface

◆ PageViewGroupList()

int ON_3dmView::PageViewGroupList ( ON_SimpleArray< int > &  group_list) const

◆ PageViewGroups()

const ON_SimpleArray<ON_2dex>& ON_3dmView::PageViewGroups ( ) const

Direct access to the raw pageview group memberships as (group index, sort index) pairs, where .i = pageview group index and .j = sort index (ON_UNSET_INT_INDEX when unsorted). Handy for copying or remapping memberships while preserving sort indices in a single step.

◆ PageViewGroupSortIndex()

int ON_3dmView::PageViewGroupSortIndex ( int  group_index) const

Gets the pageview's sort index within the pageview group with the specified index. Returns ON_UNSET_INT_INDEX ("unsorted", i.e. use page-number order) if the pageview is not in the group or has no explicit sort index in it.

◆ Read()

bool ON_3dmView::Read ( ON_BinaryArchive )

◆ RemoveFromAllPageViewGroups()

void ON_3dmView::RemoveFromAllPageViewGroups ( )

◆ RemoveFromPageViewGroup()

void ON_3dmView::RemoveFromPageViewGroup ( int  group_index)

◆ RenderingSize()

ON_2iSize ON_3dmView::RenderingSize ( ) const

◆ SectionBehavior()

ON::ViewSectionBehavior ON_3dmView::SectionBehavior ( ) const

◆ SetDescription()

void ON_3dmView::SetDescription ( const wchar_t *  description)

◆ SetFocalBlurAperture()

void ON_3dmView::SetFocalBlurAperture ( double  d)

◆ SetFocalBlurDistance()

void ON_3dmView::SetFocalBlurDistance ( double  d)

◆ SetFocalBlurJitter()

void ON_3dmView::SetFocalBlurJitter ( double  d)

◆ SetFocalBlurMode()

void ON_3dmView::SetFocalBlurMode ( ON_FocalBlurModes  m)

◆ SetFocalBlurSampleCount()

void ON_3dmView::SetFocalBlurSampleCount ( unsigned int  count)

◆ SetPageViewGroups()

void ON_3dmView::SetPageViewGroups ( const ON_SimpleArray< ON_2dex > &  groups)

◆ SetPageViewGroupSortIndex()

void ON_3dmView::SetPageViewGroupSortIndex ( int  group_index,
int  sort_index 
)

Sets the pageview's sort index within the pageview group with the specified index. If the pageview is not yet in the group, it is added. A sort index of ON_UNSET_INT_INDEX means "unsorted" (use page-number order).

◆ SetRenderingSize()

void ON_3dmView::SetRenderingSize ( const ON_2iSize size)

◆ SetSectionBehavior()

void ON_3dmView::SetSectionBehavior ( ON::ViewSectionBehavior  behavior)

◆ SetTargetPoint()

bool ON_3dmView::SetTargetPoint ( ON_3dPoint  target_point)

Description: Sets the viewport target point. Parameters: target_point - [in] When in doubt, the point m_vp.FrustumCenterPoint(ON_UNSET_VALUE) is a good choice. Remarks: This point is saved on m_vp.m_target_point.

◆ TargetPoint()

ON_3dPoint ON_3dmView::TargetPoint ( ) const

target point Returns: Target point. This point is saved on m_vp.m_target_point. The default constructor sets the target point to ON_3dPoint::UnsetPoint. You must explicitly set the target point if you want to use it. Remarks: The target point is stored on m_vp.m_target_point. The value ON_3dmView.m_target is obsolete. This function always returns the value of m_vp.m_target_point.

◆ Write()

bool ON_3dmView::Write ( ON_BinaryArchive ) const

Member Data Documentation

◆ m_bLockedProjection

bool ON_3dmView::m_bLockedProjection

If true, the camera location, camera direction, and lens angle should not be changed. It is ok to adjust clipping planes.

◆ m_bShowConstructionAxes

bool ON_3dmView::m_bShowConstructionAxes

◆ m_bShowConstructionGrid

bool ON_3dmView::m_bShowConstructionGrid

◆ m_bShowConstructionZAxis

bool ON_3dmView::m_bShowConstructionZAxis

◆ m_bShowWorldAxes

bool ON_3dmView::m_bShowWorldAxes

world axes icon

◆ m_clipping_planes

ON_SimpleArray<ON_ClippingPlaneInfo> ON_3dmView::m_clipping_planes

clipping planes Prior to Dec 14, 2010 m_clipping_planes was not saved with the view. After Dec 14, 2010 m_clipping_planes is saved.

◆ m_cplane

ON_3dmConstructionPlane ON_3dmView::m_cplane

Construction plane

◆ m_display_mode_id

ON_UUID ON_3dmView::m_display_mode_id

The value of m_display_mode_id can be one of the "standard" ids from ON_StandardDisplayModeId, nil, or a custom display mode settings on a particular computer. If you encounter a nil id or any other id that is not one of the "standard" display mode ids, then your application should use a default display mode, typically either wireframe or shaded, that is appropriate for general model viewing. The function ON::RhinoV3DisplayMode(id) will convert a display mode id into a legacy Rhino V3 display mode enum value.

◆ m_name

ON_wString ON_3dmView::m_name

name on window

◆ m_named_view_id

ON_UUID ON_3dmView::m_named_view_id

Named view information

If this view was created from a named view, then m_named_view_id identifies the named view.

The named views are ON_3dmView classes saved in ON_3dmSettings.m_named_views[]. A named view's id is the value returned by ON_3dmView.m_vp.ViewportId() A named view's name is the value returned by ON_3dmView.m_name

If this view is a named view, then m_named_view_id should be equal to m_vp.m_viewport_id.

If this view is not a named view and not created from a named view, then m_named_view_id is equal to ON_nil_uuid.

◆ m_page_settings

ON_3dmPageSettings ON_3dmView::m_page_settings

If m_view_type == ON::page_view_type, then the m_page_settings records the page size. Otherwise, m_page_settings should be ignored.

◆ m_position

ON_3dmViewPosition ON_3dmView::m_position

position of view in parent window (relative display device coordinates)

◆ m_trace_image

ON_3dmViewTraceImage ON_3dmView::m_trace_image

tracing image

◆ m_view_type

ON::view_type ON_3dmView::m_view_type

model, page, nested or uveditor

◆ m_vp

ON_Viewport ON_3dmView::m_vp

view projection information

◆ m_wallpaper_image

ON_3dmWallpaperImage ON_3dmView::m_wallpaper_image

wallpaper image