QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_3dm_properties.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(OPENNURBS_3DM_PROPERTIES_INC_)
17#define OPENNURBS_3DM_PROPERTIES_INC_
18
20
22{
23public:
26 // C++ default operator= and copy constructor work fine.
27
28 void Default();
29 ON_BOOL32 IsValid() const;
30 int NewRevision(); // returns updated revision count
31
33 ON_BOOL32 Write( ON_BinaryArchive& ) const;
34
35 void Dump( ON_TextLog& ) const;
36
39 struct tm m_create_time;
40 struct tm m_last_edit_time;
42};
43
45
47{
48public:
50 ON_3dmNotes( const ON_3dmNotes& );
52 ON_3dmNotes& operator=(const ON_3dmNotes&);
53
54 void Default();
55 ON_BOOL32 IsValid() const;
56
58 ON_BOOL32 Write( ON_BinaryArchive& ) const;
59
60 void Dump(ON_TextLog&) const;
61
63 //
64 // Interface - this information is serialized. Applications
65 // may want to derive a runtime class that has additional
66 // window and font information.
67 ON_wString m_notes; // UNICODE
68 ON_BOOL32 m_bVisible; // true if notes window is showing
69 ON_BOOL32 m_bHTML; // true if notes are in HTML
70
71 // last window position
76};
77
79
81{
82 // application that created the 3dm file
83public:
87 ON_3dmApplication& operator=(const ON_3dmApplication&);
88
89 void Default();
90 ON_BOOL32 IsValid() const;
91
93 ON_BOOL32 Write( ON_BinaryArchive& ) const;
94
95 void Dump( ON_TextLog& ) const;
96
97 ON_wString m_application_name; // short name like "Rhino 2.0"
99 ON_wString m_application_details; // whatever you want
100};
101
103
105{
106public:
110 ON_3dmProperties& operator=(const ON_3dmProperties&);
111
112 void Default();
113
115 ON_BOOL32 Write(ON_BinaryArchive&) const;
116
117 void Dump( ON_TextLog& ) const;
118
121 ON_WindowsBitmap m_PreviewImage; // preview image of model
122 ON_3dmApplication m_Application; // application that created 3DM file
123};
124
126
127#endif
Definition opennurbs_3dm_properties.h:81
ON_wString m_application_URL
Definition opennurbs_3dm_properties.h:98
ON_wString m_application_name
Definition opennurbs_3dm_properties.h:97
ON_wString m_application_details
Definition opennurbs_3dm_properties.h:99
Definition opennurbs_3dm_properties.h:47
int m_window_bottom
Definition opennurbs_3dm_properties.h:75
int m_window_left
Definition opennurbs_3dm_properties.h:72
ON_BOOL32 m_bHTML
Definition opennurbs_3dm_properties.h:69
int m_window_top
Definition opennurbs_3dm_properties.h:73
ON_wString m_notes
Definition opennurbs_3dm_properties.h:67
ON_BOOL32 m_bVisible
Definition opennurbs_3dm_properties.h:68
int m_window_right
Definition opennurbs_3dm_properties.h:74
Definition opennurbs_3dm_properties.h:105
ON_WindowsBitmap m_PreviewImage
Definition opennurbs_3dm_properties.h:121
ON_3dmRevisionHistory m_RevisionHistory
Definition opennurbs_3dm_properties.h:119
ON_3dmApplication m_Application
Definition opennurbs_3dm_properties.h:122
ON_3dmNotes m_Notes
Definition opennurbs_3dm_properties.h:120
Definition opennurbs_3dm_properties.h:22
ON_wString m_sCreatedBy
Definition opennurbs_3dm_properties.h:37
ON_wString m_sLastEditedBy
Definition opennurbs_3dm_properties.h:38
int m_revision_count
Definition opennurbs_3dm_properties.h:41
Definition opennurbs_archive.h:152
Definition opennurbs_textlog.h:20
Definition opennurbs_bitmap.h:189
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
int ON_BOOL32
Definition opennurbs_system.h:362