CFx SDK Documentation  2020SP3
DbUserIO.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
33 class OdCmColor;
34 class OdSelectionSet;
35 class OdGsModel;
36 
37 
39 
44 {
45 public:
47 
48  virtual bool append(OdDbStub* id, const OdDbSelectionMethod* pMethod);
49  virtual bool remove(OdDbStub* id, const OdDbSelectionMethod* pMethod);
50 
51  virtual bool append(const OdDbObjectId& entId, const OdDbSelectionMethod* pMethod) = 0;
52  virtual bool remove(const OdDbObjectId& entId, const OdDbSelectionMethod* pMethod) = 0;
53 };
54 
56 
57 
64 {
65 public:
67 
68  virtual void setPickfirst(OdSelectionSet* pSSet) = 0;
69 
71 
87  virtual OdCmColor getColor(const OdString& prompt,
88  int options = OdEd::kInpDefault,
89  const OdCmColor* pDefaultValue = 0,
90  const OdString& keywords = OdString::kEmpty,
91  OdEdColorTracker* pTracker = 0) = 0;
92 
107  int options = OdEd::kSelDefault,
108  const OdSelectionSet* pDefaultValue = 0,
109  const OdString& keywords = OdString::kEmpty,
110  OdSSetTracker* pTracker = 0,
111  OdGePoint3dArray* ptsPointer = NULL) = 0;
112 };
117 
118 #endif //#ifndef _ODDBUSERIO_H_INCLUDED_
DbExport.h
OdString
Definition: OdString.h:95
NULL
#define NULL
Definition: GsProperties.h:177
OdPlatform.h
OdDbUserIO::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbUserIO)
OdEdSSetTracker::append
virtual bool append(const OdDbObjectId &entId, const OdDbSelectionMethod *pMethod)=0
OdDbObjectId
Definition: DbObjectId.h:99
OdDbUserIO::select
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
EdBaseUserIO.h
OdArray< OdGePoint3d, OdMemoryAllocator< OdGePoint3d > >
OdDbUserIO::setPickfirst
virtual void setPickfirst(OdSelectionSet *pSSet)=0
OdEdBaseUserIO
Definition: EdBaseUserIO.h:55
OdEdSSetTracker
Definition: DbUserIO.h:44
OdEd::kSelDefault
@ kSelDefault
Definition: EdUserIO.h:102
OdEdSSetTracker::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdEdSSetTracker)
OdEdSSetTracker::remove
virtual bool remove(OdDbStub *id, const OdDbSelectionMethod *pMethod)
OdEdSSetTracker::append
virtual bool append(OdDbStub *id, const OdDbSelectionMethod *pMethod)
EdUserIO.h
OdSmartPtr
Definition: SmartPtr.h:58
OdEdSSetTracker::remove
virtual bool remove(const OdDbObjectId &entId, const OdDbSelectionMethod *pMethod)=0
OdDbUserIOPtr
OdSmartPtr< OdDbUserIO > OdDbUserIOPtr
Definition: DbUserIO.h:116
DbSSet.h
OdDbUserIO::pickfirst
virtual OdSelectionSetPtr pickfirst()=0
OdEdSSetTrackerPtr
OdSmartPtr< OdEdSSetTracker > OdEdSSetTrackerPtr
Definition: DbUserIO.h:55
OdSelectionSet
Definition: SSet.h:165
OdDbUserIO
Definition: DbUserIO.h:64
ODRX_ABSTRACT
#define ODRX_ABSTRACT
Definition: OdPlatformSettings.h:117
OdEd::kInpDefault
@ kInpDefault
Definition: EdUserIO.h:47
OdEdColorTracker
Definition: EdUserIO.h:243
OdSSetTracker
Definition: EdBaseUserIO.h:39
OdDbSelectionMethod
Definition: SSet.h:39
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdGsModel
Definition: GsModel.h:77
OdCmColor
Definition: CmColor.h:59
OdSSetTrackerPtr
OdSmartPtr< OdSSetTracker > OdSSetTrackerPtr
Definition: DbUserIO.h:35
OdDbUserIO::getColor
virtual OdCmColor getColor(const OdString &prompt, int options=OdEd::kInpDefault, const OdCmColor *pDefaultValue=0, const OdString &keywords=OdString::kEmpty, OdEdColorTracker *pTracker=0)=0