CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbUserIO.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _ODDBUSERIO_H_INCLUDED_
25#define _ODDBUSERIO_H_INCLUDED_
26
27#include "DbExport.h"
28#include "OdPlatform.h"
29#include "Ed/EdUserIO.h"
30#include "Ed/EdBaseUserIO.h"
31#include "DbSSet.h"
32
33class OdCmColor;
34class OdSelectionSet;
35class OdGsModel;
36
37
39
44{
45public:
47
52 virtual int addDrawables(OdGsView* pView) ODRX_OVERRIDE;
58
63 virtual bool append(OdDbStub* id, const OdDbSelectionMethod* pMethod);
68 virtual bool remove(OdDbStub* id, const OdDbSelectionMethod* pMethod);
69
74 virtual bool append(const OdDbBaseFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
79 virtual bool remove(const OdDbBaseFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
80
90 virtual bool append(const OdDbObjectId& id, const OdDbSelectionMethod* pMethod);
91
101 virtual bool remove(const OdDbObjectId& id, const OdDbSelectionMethod* pMethod);
102
103
116 virtual bool append(const OdDbFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
117
130 virtual bool remove(const OdDbFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
131};
132
134
135
142{
143public:
145
146 virtual void setPickfirst(OdSelectionSet* pSSet) = 0;
147
149
165 virtual OdCmColor getColor(const OdString& prompt,
166 int options = OdEd::kInpDefault,
167 const OdCmColor* pDefaultValue = 0,
168 const OdString& keywords = OdString::kEmpty,
169 OdEdColorTracker* pTracker = 0) = 0;
170
185 int options = OdEd::kSelDefault,
186 const OdSelectionSet* pDefaultValue = 0,
187 const OdString& keywords = OdString::kEmpty,
188 OdSSetTracker* pTracker = 0,
189 OdGePoint3dArray* ptsPointer = NULL) = 0;
190};
191
195
196#endif //#ifndef _ODDBUSERIO_H_INCLUDED_
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > > OdGePoint3dArray
#define TOOLKIT_EXPORT
Definition DbExport.h:40
OdSmartPtr< OdDbUserIO > OdDbUserIOPtr
Definition DbUserIO.h:194
OdSmartPtr< OdSSetTracker > OdSSetTrackerPtr
Definition DbUserIO.h:38
OdSmartPtr< OdEdSSetTracker > OdEdSSetTrackerPtr
Definition DbUserIO.h:133
#define ODRX_ABSTRACT
#define ODRX_OVERRIDE
OdSmartPtr< class OdSelectionSet > OdSelectionSetPtr
Definition SSet.h:156
virtual OdSelectionSetPtr select(const OdString &prompt=OdString::kEmpty, int options=OdEd::kSelDefault, const OdSelectionSet *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdSSetTracker *pTracker=0, OdGePoint3dArray *ptsPointer=NULL)=0
virtual OdCmColor getColor(const OdString &prompt, int options=OdEd::kInpDefault, const OdCmColor *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdColorTracker *pTracker=0)=0
virtual void setPickfirst(OdSelectionSet *pSSet)=0
virtual OdSelectionSetPtr pickfirst()=0
ODRX_DECLARE_MEMBERS(OdDbUserIO)
virtual bool remove(OdDbStub *id, const OdDbSelectionMethod *pMethod)
virtual void removeDrawables(OdGsView *pView) ODRX_OVERRIDE
virtual bool append(const OdDbObjectId &id, const OdDbSelectionMethod *pMethod)
virtual bool remove(const OdDbObjectId &id, const OdDbSelectionMethod *pMethod)
virtual bool remove(const OdDbFullSubentPath &subEntPath, const OdDbSelectionMethod *pMethod)
ODRX_DECLARE_MEMBERS(OdEdSSetTracker)
virtual bool append(const OdDbFullSubentPath &subEntPath, const OdDbSelectionMethod *pMethod)
virtual bool remove(const OdDbBaseFullSubentPath &subEntPath, const OdDbSelectionMethod *pMethod)
virtual bool append(OdDbStub *id, const OdDbSelectionMethod *pMethod)
virtual bool append(const OdDbBaseFullSubentPath &subEntPath, const OdDbSelectionMethod *pMethod)
virtual int addDrawables(OdGsView *pView) ODRX_OVERRIDE
Definition Gs.h:141
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition OdString.h:100
@ kSelDefault
Definition EdUserIO.h:103
@ kInpDefault
Definition EdUserIO.h:47