QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_group.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_GROUP_INC_)
17#define OPENNURBS_GROUP_INC_
18
20{
22public:
23 ON_Group();
24 ~ON_Group();
25 // C++ default copy construction and operator= work fine.
26 // Do not add custom versions.
27
29 //
30 // ON_Object overrides
31
32 /*
33 Description:
34 Tests an object to see if its data members are correctly
35 initialized.
36 Parameters:
37 text_log - [in] if the object is not valid and text_log
38 is not NULL, then a brief englis description of the
39 reason the object is not valid is appened to the log.
40 The information appended to text_log is suitable for
41 low-level debugging purposes by programmers and is
42 not intended to be useful as a high level user
43 interface tool.
44 Returns:
45 @untitled table
46 true object is valid
47 false object is invalid, uninitialized, etc.
48 Remarks:
49 Overrides virtual ON_Object::IsValid
50 */
51 ON_BOOL32 IsValid( ON_TextLog* text_log = NULL ) const;
52
53 void Dump( ON_TextLog& ) const; // for debugging
54
56 ON_BinaryArchive& // serialize definition to binary archive
57 ) const;
58
60 ON_BinaryArchive& // restore definition from binary archive
61 );
62
64 //
65 // Obsolete interface - just work on the public members
66 void SetGroupName( const wchar_t* );
67 void SetGroupName( const char* );
68
69 void GetGroupName( ON_wString& ) const;
70 const wchar_t* GroupName() const;
71
72 void SetGroupIndex(int);
73 int GroupIndex() const;
74
75public:
79};
80
81#endif
Definition opennurbs_archive.h:152
Definition opennurbs_group.h:20
ON_UUID m_group_id
Definition opennurbs_group.h:78
int m_group_index
Definition opennurbs_group.h:77
ON_OBJECT_DECLARE(ON_Group)
ON_wString m_group_name
Definition opennurbs_group.h:76
Definition opennurbs_object.h:393
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 ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition opennurbs_object.cpp:1714
Definition opennurbs_textlog.h:20
Definition opennurbs_uuid.h:31
Definition opennurbs_string.h:392
#define ON_CLASS
Definition opennurbs_defines.h:91
#define NULL
Definition opennurbs_system.h:256
int ON_BOOL32
Definition opennurbs_system.h:362