CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbUserIO.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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{
45protected:
50 virtual int addDrawables(OdGsView* pView) ODRX_OVERRIDE;
56
61 virtual bool append(OdDbStub* id, const OdDbSelectionMethod* pMethod);
66 virtual bool remove(OdDbStub* id, const OdDbSelectionMethod* pMethod);
67
72 virtual bool append(const OdDbBaseFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
77 virtual bool remove(const OdDbBaseFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
78
79public:
81
91 virtual bool append(const OdDbObjectId& id, const OdDbSelectionMethod* pMethod);
92
102 virtual bool remove(const OdDbObjectId& id, const OdDbSelectionMethod* pMethod);
103
104
117 virtual bool append(const OdDbFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
118
131 virtual bool remove(const OdDbFullSubentPath& subEntPath, const OdDbSelectionMethod* pMethod);
132};
133
135
136
143{
144public:
146
147 virtual void setPickfirst(OdSelectionSet* pSSet) = 0;
148
150
166 virtual OdCmColor getColor(const OdString& prompt,
167 int options = OdEd::kInpDefault,
168 const OdCmColor* pDefaultValue = 0,
169 const OdString& keywords = OdString::kEmpty,
170 OdEdColorTracker* pTracker = 0) = 0;
171
186 int options = OdEd::kSelDefault,
187 const OdSelectionSet* pDefaultValue = 0,
188 const OdString& keywords = OdString::kEmpty,
189 OdSSetTracker* pTracker = 0,
190 OdGePoint3dArray* ptsPointer = NULL) = 0;
191};
196
197#endif //#ifndef _ODDBUSERIO_H_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbUserIO > OdDbUserIOPtr
Definition: DbUserIO.h:195
OdSmartPtr< OdSSetTracker > OdSSetTrackerPtr
Definition: DbUserIO.h:38
OdSmartPtr< OdEdSSetTracker > OdEdSSetTrackerPtr
Definition: DbUserIO.h:134
#define ODRX_ABSTRACT
#define ODRX_OVERRIDE
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:140
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
@ kSelDefault
Definition: EdUserIO.h:103
@ kInpDefault
Definition: EdUserIO.h:47