QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_detail.h
Go to the documentation of this file.
1/* $NoKeywords: $ */
2/*
3//
4// Copyright (c) 1993-2007 Robert McNeel & Associates. All rights reserved.
5// Rhinoceros is a registered trademark of Robert McNeel & Assoicates.
6//
7// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
8// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
9// MERCHANTABILITY ARE HEREBY DISCLAIMED.
10//
11// For complete openNURBS copyright information see <http://www.opennurbs.org>.
12//
14*/
15
16#if !defined(ON_DETAIL_OBJECTY_INC_)
17#define ON_DETAIL_OBJECTY_INC_
18
20{
22
23public:
26
27 // C++ defaults for copy constructor and
28 // operator= work fine.
29
31 //
32 // virtual ON_Object overrides
33 //
34 void MemoryRelocate();
35
36 ON_BOOL32 IsValid( ON_TextLog* text_log = NULL ) const;
37
38 void Dump( ON_TextLog& ) const;
39
40 unsigned int SizeOf() const;
41
43 ON_BinaryArchive& binary_archive
44 ) const;
45
47 ON_BinaryArchive& binary_archive
48 );
49
50 ON::object_type ObjectType() const; // returns ON::detail_object
51
53 //
54 // virtual ON_Geometry overrides
55 // The m_boundary determines all bounding boxes
56 //
57 int Dimension() const;
58
60 double* boxmin,
61 double* boxmax,
62 int bGrowBox = false
63 ) const;
64
66 ON_BoundingBox& tight_bbox,
67 int bGrowBox = false,
68 const ON_Xform* xform = 0
69 ) const;
70
71 ON_BOOL32 Transform( const ON_Xform& xform );
72
73 // m_page_per_model_ratio is the ratio of page length / model length
74 // where both lengths are in the same unit system
75 // (ex. 1/4" on page = 1' in model = 0.25/12 = 0.02083)
76 // ( 1mm on page = 1m in model = 1/1000 = 0.001)
77 // If m_page_per_model_ratio > 0.0, then the detail
78 // is drawn using the specified scale.
80
81 // A view with ON_3dmView::m_view_type = ON::nested_view_type
82 // This field is used for IO purposes only. Runtime detail
83 // view projection information is on CRhDetailViewObject.
85
86 // 2d curve in page layout coordinates in mm
87 // (0,0) = lower left corner of page
89};
90
91
92
93#endif
94
@ Transform
Definition RSMetaType.h:67
Definition opennurbs_3dm_settings.h:327
Definition opennurbs_archive.h:152
Definition opennurbs_bounding_box.h:25
Definition opennurbs_detail.h:20
ON_NurbsCurve m_boundary
Definition opennurbs_detail.h:88
double m_page_per_model_ratio
Definition opennurbs_detail.h:79
ON_3dmView m_view
Definition opennurbs_detail.h:84
ON_OBJECT_DECLARE(ON_DetailView)
Definition opennurbs_geometry.h:36
virtual ON_BOOL32 GetBBox(double *boxmin, double *boxmax, int bGrowBox=false) const =0
virtual bool GetTightBoundingBox(ON_BoundingBox &tight_bbox, int bGrowBox=false, const ON_Xform *xform=0) const
Definition opennurbs_geometry.cpp:98
virtual int Dimension() const =0
Definition opennurbs_nurbscurve.h:27
virtual void Dump(ON_TextLog &) const
Definition opennurbs_object.cpp:1695
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition opennurbs_object.cpp:1734
virtual void MemoryRelocate()
Definition opennurbs_object.cpp:1595
virtual unsigned int SizeOf() const
Definition opennurbs_object.cpp:1677
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
virtual ON::object_type ObjectType() const
Definition opennurbs_object.cpp:1616
Definition opennurbs_textlog.h:20
Definition opennurbs_xform.h:28
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362