CFx SDK Documentation  2023 SP0
DbAnnotativeObjectPE.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 _DBANNOTATIVEOBJECTPE_H_INCLUDED_
25 #define _DBANNOTATIVEOBJECTPE_H_INCLUDED_
26 
27 #include "RxObject.h"
28 
29 class OdDbViewport;
30 
40 {
41 public:
42 
44 
50  virtual bool annotative(const OdDbObject* pObject) const = 0;
51 
62  OdDbObject* pObject,
63  bool bAnnotative ) = 0;
64 
76  OdDbObject* pObject,
77  bool& bUpdated) = 0;
78 
83  virtual bool forceAnnoAllVisible(const OdDbObject* /*pObject*/) const { return false;} ;
84 
89  virtual OdResult setForceAnnoAllVisible(OdDbObject* /*pObj*/, bool /*bForce*/) const {return eNotImplemented;}
90 
95 };
97 
108 {
109 public:
110 
112 
118  virtual bool paperOrientation(OdDbObject* pObject) const = 0;
119 
130  OdDbObject* pObject,
131  const bool bPaperOrientation ) = 0;
132 
137  OdDbObject* /*pObject*/,
138  const OdDbViewport* /*pVport*/ ) const
139  { return eNotImplemented; }
140 };
142 
143 #endif //_DBANNOTATIVEOBJECTPE_H_INCLUDED_
OdSmartPtr< OdDbAnnotativeObjectPE > OdDbAnnotativeObjectPEPtr
OdSmartPtr< OdDbPaperOrientationPE > OdDbPaperOrientationPEPtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
@ eNotImplemented
OdResult
Definition: OdResult.h:29
ODRX_DECLARE_MEMBERS(OdDbAnnotativeObjectPE)
virtual OdResult setForceAnnoAllVisible(OdDbObject *, bool) const
virtual OdResult setFromStyle(OdDbObject *pObject, bool &bUpdated)=0
virtual bool forceAnnoAllVisible(const OdDbObject *) const
virtual bool annotative(const OdDbObject *pObject) const =0
virtual OdResult resetScaleDependentProperties(OdDbObject *)
virtual OdResult setAnnotative(OdDbObject *pObject, bool bAnnotative)=0
virtual bool paperOrientation(OdDbObject *pObject) const =0
ODRX_DECLARE_MEMBERS(OdDbPaperOrientationPE)
virtual OdResult setPaperOrientation(OdDbObject *pObject, const bool bPaperOrientation)=0
virtual OdResult applyPaperOrientationTransform(OdDbObject *, const OdDbViewport *) const