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
19
class
ON_CLASS
ON_Group
:
public
ON_Object
20
{
21
ON_OBJECT_DECLARE
(
ON_Group
);
22
public
:
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
55
ON_BOOL32
Write
(
56
ON_BinaryArchive
&
// serialize definition to binary archive
57
)
const
;
58
59
ON_BOOL32
Read
(
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
75
public
:
76
ON_wString
m_group_name
;
77
int
m_group_index
;
78
ON_UUID
m_group_id
;
79
};
80
81
#endif
ON_BinaryArchive
Definition
opennurbs_archive.h:152
ON_Group
Definition
opennurbs_group.h:20
ON_Group::m_group_id
ON_UUID m_group_id
Definition
opennurbs_group.h:78
ON_Group::m_group_index
int m_group_index
Definition
opennurbs_group.h:77
ON_Group::ON_OBJECT_DECLARE
ON_OBJECT_DECLARE(ON_Group)
ON_Group::m_group_name
ON_wString m_group_name
Definition
opennurbs_group.h:76
ON_Object
Definition
opennurbs_object.h:393
ON_Object::Dump
virtual void Dump(ON_TextLog &) const
Definition
opennurbs_object.cpp:1695
ON_Object::IsValid
virtual ON_BOOL32 IsValid(ON_TextLog *text_log=NULL) const =0
ON_Object::Read
virtual ON_BOOL32 Read(ON_BinaryArchive &binary_archive)
Definition
opennurbs_object.cpp:1734
ON_Object::Write
virtual ON_BOOL32 Write(ON_BinaryArchive &binary_archive) const
Definition
opennurbs_object.cpp:1714
ON_TextLog
Definition
opennurbs_textlog.h:20
ON_UUID
Definition
opennurbs_uuid.h:31
ON_wString
Definition
opennurbs_string.h:392
ON_CLASS
#define ON_CLASS
Definition
opennurbs_defines.h:91
NULL
#define NULL
Definition
opennurbs_system.h:256
ON_BOOL32
int ON_BOOL32
Definition
opennurbs_system.h:362
src
3rdparty
legacy
opennurbs
opennurbs_group.h
Generated on Fri Jul 18 2025 09:41:50 for QCAD by
1.10.0