CFx SDK Documentation  2022 SP0
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_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbUserIO > OdDbUserIOPtr
Definition: DbUserIO.h:116
OdSmartPtr< OdSSetTracker > OdSSetTrackerPtr
Definition: DbUserIO.h:35
OdSmartPtr< OdEdSSetTracker > OdEdSSetTrackerPtr
Definition: DbUserIO.h:55
#define NULL
Definition: GsProperties.h:177
#define ODRX_ABSTRACT
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 bool remove(const OdDbObjectId &entId, const OdDbSelectionMethod *pMethod)=0
ODRX_DECLARE_MEMBERS(OdEdSSetTracker)
virtual bool append(OdDbStub *id, const OdDbSelectionMethod *pMethod)
virtual bool append(const OdDbObjectId &entId, const OdDbSelectionMethod *pMethod)=0
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
@ kSelDefault
Definition: EdUserIO.h:102
@ kInpDefault
Definition: EdUserIO.h:47