1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402 |
- //
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 2015 Autodesk, Inc. All rights reserved.
- //
- // Use of this software is subject to the terms of the Autodesk license
- // agreement provided at the time of installation or download, or which
- // otherwise accompanies this software in either electronic or hard copy form.
- //
- //////////////////////////////////////////////////////////////////////////////
- //
- // DESCRIPTION: Exported protocol for AutoCAD's built in symbol
- // tables, their table specific record types, and
- // their iterators.
- #ifndef AD_DBSYMTB_H
- #define AD_DBSYMTB_H
- #include "dbmain.h"
- #include "dbdict.h"
- #include "dbdate.h"
- #include "dbbackground.h"
- #include "gevec2d.h"
- #include "acgiviewport.h"
- #include "acgivisualstyle.h"
- #pragma pack(push, 8)
- #ifdef target
- # undef target
- #endif
- class AcDbSortentsTable;
- class AcDbSymbolTableIterator;
- class AcDbSymbolTableRecord;
- class AcDbAnnotationScale;
- class AcGsView;
- class AcString;
- namespace Atil
- {
- class Image; // for Atil::Image
- }
- class ADESK_NO_VTABLE AcDbSymbolTable: public AcDbObject
- //
- // (... and Subclasses)
- //
- // Note that there is both overloading of functions within each
- // class defined by these macros and overriding of non virtual
- // functions between classes. The overriding of these functions
- // is necessary to allow some member functions to take arguments
- // that are appropriate for a given table.
- //
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbSymbolTable);
- AcDbSymbolTable();
- virtual ~AcDbSymbolTable();
- typedef AcDbSymbolTableRecord RecordType;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbSymbolTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has(const ACHAR* name) const;
- bool has(AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbSymbolTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add(AcDbSymbolTableRecord* pRecord);
- Acad::ErrorStatus add(AcDbObjectId& recordId, AcDbSymbolTableRecord* pRecord);
- };
- class AcDbBlockTableRecord;
- class AcDbBlockTableIterator;
- class AcDbBlockTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbBlockTable);
- AcDbBlockTable();
- virtual ~AcDbBlockTable();
- typedef AcDbBlockTableRecord RecordType;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbBlockTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRec = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbBlockTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbBlockTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId, AcDbBlockTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbLayerTableRecord;
- class AcDbLayerTableIterator;
- class AcDbLayerTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbLayerTable);
- AcDbLayerTable();
- virtual ~AcDbLayerTable();
- typedef AcDbLayerTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbLayerTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbLayerTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbLayerTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId, AcDbLayerTableRecord* pRecord);
- void generateUsageData();
- bool hasUnreconciledLayers() const;
- Acad::ErrorStatus getUnreconciledLayers(AcDbObjectIdArray& idArray) const;
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbTextStyleTableRecord;
- class AcDbTextStyleTableIterator;
- class AcDbTextStyleTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbTextStyleTable);
- AcDbTextStyleTable();
- virtual ~AcDbTextStyleTable();
- typedef AcDbTextStyleTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbTextStyleTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbTextStyleTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbTextStyleTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbTextStyleTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbLinetypeTableRecord;
- class AcDbLinetypeTableIterator;
- class AcDbLinetypeTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbLinetypeTable);
- AcDbLinetypeTable();
- virtual ~AcDbLinetypeTable();
- typedef AcDbLinetypeTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbLinetypeTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRec = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbLinetypeTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbLinetypeTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbLinetypeTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbAbstractViewTableRecord;
- class AcDbAbstractViewTableIterator;
- class ADESK_NO_VTABLE AcDbAbstractViewTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbAbstractViewTable);
- AcDbAbstractViewTable();
- virtual ~AcDbAbstractViewTable();
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbAbstractViewTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbAbstractViewTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbAbstractViewTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbAbstractViewTableRecord* pRecord);
- };
- class AcDbViewTableRecord;
- class AcDbViewTableIterator;
- class AcDbViewTable: public AcDbAbstractViewTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbViewTable);
- AcDbViewTable();
- virtual ~AcDbViewTable();
- typedef AcDbViewTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbViewTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRec = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbViewTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbViewTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbViewTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbUCSTableRecord;
- class AcDbUCSTableIterator;
- class AcDbUCSTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbUCSTable);
- AcDbUCSTable();
- virtual ~AcDbUCSTable();
- typedef AcDbUCSTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbUCSTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbUCSTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbUCSTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbUCSTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbViewportTableRecord;
- class AcDbViewportTableIterator;
- class AcDbViewportTable: public AcDbAbstractViewTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbViewportTable);
- AcDbViewportTable();
- virtual ~AcDbViewportTable();
- typedef AcDbViewportTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbViewportTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRecord = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbViewportTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbViewportTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbViewportTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbRegAppTableRecord;
- class AcDbRegAppTableIterator;
- class AcDbRegAppTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbRegAppTable);
- AcDbRegAppTable();
- virtual ~AcDbRegAppTable();
- typedef AcDbRegAppTableRecord RecordType;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbRegAppTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt(const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRec = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbRegAppTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbRegAppTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbRegAppTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbDimStyleTableRecord;
- class AcDbDimStyleTableIterator;
- class AcDbDimStyleTable: public AcDbSymbolTable
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbDimStyleTable);
- AcDbDimStyleTable();
- virtual ~AcDbDimStyleTable();
- typedef AcDbDimStyleTableRecord RecordType;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbDimStyleTableRecord*& pRec,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- Acad::ErrorStatus getAt (const ACHAR* entryName,
- AcDbObjectId& recordId,
- bool getErasedRec = false) const;
- bool has (const ACHAR* name) const;
- bool has (AcDbObjectId id) const;
- Acad::ErrorStatus newIterator(AcDbDimStyleTableIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus add (AcDbDimStyleTableRecord* pRecord);
- Acad::ErrorStatus add (AcDbObjectId& recordId,
- AcDbDimStyleTableRecord* pRecord);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- ///// AcDbSymbolTableIterator
- //
- // This class is responsible for iterating over the records in a symbol
- // table.
- //
- // This is a completely "generic" symbol table iterator in that it can
- // be used to iterate over the contents of any AcDbSymbolTable subclass.
- // However, symbol table specific iterators are defined below.
- //
- // One major item of note. The creation of one of these iterators
- // requires the opening (for read) of the table being iterated over.
- // This read stays in effect until the iterator is destroyed.
- //
- class AcDbSymbolTableIterator
- {
- public:
- virtual ~AcDbSymbolTableIterator();
- void start (bool atBeginning = true,
- bool skipDeleted = true);
- bool done () const;
- Acad::ErrorStatus getRecordId(AcDbObjectId& id) const;
- Acad::ErrorStatus getRecord(AcDbSymbolTableRecord*& pRecord,
- AcDb::OpenMode openMode,
- bool openErasedRec = false) const;
- void step (bool forward = true,
- bool skipDeleted = true);
- Acad::ErrorStatus seek (AcDbObjectId id);
- Acad::ErrorStatus seek (const AcDbSymbolTableRecord* pRecord);
- protected:
- void* mpImp;
- AcDbSymbolTableIterator();
- friend class AcDbSymbolTable;
- };
- class AcDbBlockTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbBlockTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbBlockTableRecord* pRecord);
- protected:
- AcDbBlockTableIterator();
- friend class AcDbBlockTable;
- };
- class AcDbLayerTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbLayerTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbLayerTableRecord* pRecord);
- bool getSkipHidden() const;
- void setSkipHidden(bool value);
- bool getSkipReconciled() const;
- void setSkipReconciled(bool value);
- protected:
- AcDbLayerTableIterator();
- friend class AcDbLayerTable;
- };
- class AcDbTextStyleTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbTextStyleTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbTextStyleTableRecord* pRecord);
- protected:
- AcDbTextStyleTableIterator();
- friend class AcDbTextStyleTable;
- };
- class AcDbLinetypeTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbLinetypeTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbLinetypeTableRecord* pRecord);
- protected:
- AcDbLinetypeTableIterator();
- friend class AcDbLinetypeTable;
- };
- class AcDbAbstractViewTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbAbstractViewTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbAbstractViewTableRecord* pRecord);
- protected:
- AcDbAbstractViewTableIterator();
- friend class AcDbAbstractViewTable;
- };
- class AcDbViewTableIterator : public AcDbAbstractViewTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbViewTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbViewTableRecord* pRecord);
- protected:
- AcDbViewTableIterator();
- friend class AcDbViewTable;
- };
- class AcDbUCSTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbUCSTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbUCSTableRecord* pRecord);
- protected:
- AcDbUCSTableIterator();
- friend class AcDbUCSTable;
- };
- class AcDbViewportTableIterator : public AcDbAbstractViewTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbViewportTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbViewportTableRecord* pRecord);
- protected:
- AcDbViewportTableIterator();
- friend class AcDbViewportTable;
- };
- class AcDbRegAppTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbRegAppTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbRegAppTableRecord* pRecord);
- protected:
- AcDbRegAppTableIterator();
- friend class AcDbRegAppTable;
- };
- class AcDbDimStyleTableIterator : public AcDbSymbolTableIterator
- {
- public:
- Acad::ErrorStatus getRecord(AcDbDimStyleTableRecord*& pRecord,
- AcDb::OpenMode openMode, bool openErasedRec = false) const;
- Acad::ErrorStatus seek(AcDbObjectId id);
- Acad::ErrorStatus seek(const AcDbDimStyleTableRecord* pRecord);
- protected:
- AcDbDimStyleTableIterator();
- friend class AcDbDimStyleTable;
- };
- class ADESK_NO_VTABLE AcDbSymbolTableRecord: public AcDbObject
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbSymbolTableRecord);
- AcDbSymbolTableRecord();
- virtual ~AcDbSymbolTableRecord();
- typedef AcDbSymbolTable TableType;
- Acad::ErrorStatus getName(ACHAR*& pName) const;
- Acad::ErrorStatus getName(AcString & sName) const;
- Acad::ErrorStatus getName(const ACHAR*& pName) const;
- Acad::ErrorStatus setName(const ACHAR* pName);
- bool isDependent() const;
- bool isResolved() const;
- bool isRenamable() const;
- };
- class AcDbBlockTableRecordIterator
- {
- public:
- virtual ~AcDbBlockTableRecordIterator();
- void start (bool atBeginning = true,
- bool skipDeleted = true);
- bool done () const;
- Acad::ErrorStatus getEntityId (AcDbObjectId& entityId) const;
- Acad::ErrorStatus getEntity(AcDbEntity*& pEntity, AcDb::OpenMode openMode,
- bool openErasedEntity = false) const;
- AcDbBlockTableRecord* blockTableRecord() const;
- void step (bool forward = true,
- bool skipDeleted = true);
- Acad::ErrorStatus seek (AcDbObjectId id);
- Acad::ErrorStatus seek (const AcDbEntity* pEntity);
- protected:
- class AcDbImpBlockTableRecordIterator* mpImp;
- private:
- AcDbBlockTableRecordIterator();
- friend class AcDbImpBlockTableRecord;
- };
- // This class will be removed in the next release. Instead, use
- // AcDbBlockTableRecord::getBlockReferenceIds().
- //
- class AcDbBlockReferenceIdIterator
- {
- public:
- ~AcDbBlockReferenceIdIterator();
- void start () { mPos = 0; }
-
- bool done () const { return mPos >= mAry.length(); }
- Acad::ErrorStatus getBlockReferenceId (AcDbObjectId& id) const;
- Acad::ErrorStatus getDatabase (AcDbDatabase*& pDb) const;
- Acad::ErrorStatus getBlockReference(AcDbBlockReference*& pBlkRef,
- AcDb::OpenMode openMode, bool openErasedEntity = false) const;
- void step () { mPos++; }
- Acad::ErrorStatus seek (AcDbObjectId id);
- private:
- AcDbBlockReferenceIdIterator();
- friend class AcDbBlockTableRecord;
- int mPos;
- AcDbObjectIdArray mAry;
- };
- class AcDbBlockTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbBlockTableRecord);
- AcDbBlockTableRecord();
- virtual ~AcDbBlockTableRecord();
- typedef AcDbBlockTable TableType;
- typedef AcArray<Adesk::UInt8> PreviewIcon;
- virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler* filer) const;
- virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler* filer) const;
- Acad::ErrorStatus appendAcDbEntity(AcDbEntity* pEntity);
- Acad::ErrorStatus appendAcDbEntity(AcDbObjectId& pOutputId,
- AcDbEntity* pEntity);
- Acad::ErrorStatus newIterator(
- AcDbBlockTableRecordIterator*& pIterator,
- bool atBeginning = true,
- bool skipDeleted = true) const;
- Acad::ErrorStatus comments(ACHAR*& pString) const;
- Acad::ErrorStatus comments(const ACHAR*& pString) const;
- Acad::ErrorStatus setComments(const ACHAR* pString);
- Acad::ErrorStatus pathName(ACHAR*& pPath) const;
- Acad::ErrorStatus pathName(const ACHAR*& pPath) const;
- Acad::ErrorStatus setPathName(const ACHAR* pathStr);
-
- AcGePoint3d origin() const;
- Acad::ErrorStatus setOrigin(const AcGePoint3d& pt);
- Acad::ErrorStatus openBlockBegin(AcDbBlockBegin*& pBlockBegin,
- AcDb::OpenMode openMode);
-
- Acad::ErrorStatus openBlockEnd(AcDbBlockEnd*& pBlockEnd,
- AcDb::OpenMode openMode);
- bool hasAttributeDefinitions() const;
- bool hasPreviewIcon() const;
- Acad::ErrorStatus getPreviewIcon(PreviewIcon &previewIcon) const;
- Acad::ErrorStatus setPreviewIcon(const PreviewIcon &previewIcon);
- bool isAnonymous() const;
- bool isFromExternalReference() const;
- bool isFromOverlayReference() const;
- Acad::ErrorStatus setIsFromOverlayReference(bool bIsOverlay);
- bool isLayout() const;
- AcDbObjectId getLayoutId() const;
- Acad::ErrorStatus setLayoutId(AcDbObjectId);
- Acad::ErrorStatus newBlockReferenceIdIterator(
- AcDbBlockReferenceIdIterator*& pIter) const;
- // AcDbBlockReferenceIdIterator will be going away.
- // Use getBlockReferenceIds() instead.
- //
- Acad::ErrorStatus getBlockReferenceIds(AcDbObjectIdArray& ids,
- bool bDirectOnly = true,
- bool bForceValidity = false) const;
- Acad::ErrorStatus getErasedBlockReferenceIds(AcDbObjectIdArray&);
- // getSortentsTable
- //
- // Returns the sortents table opened as requested, sparing the caller
- // the work of getting the extension dictionary and looking the sortents
- // table up in it.
- // If the dictionary is successfully opened and returned, it is the
- // caller's responsibility to close it.
- //
- // ErrorStatus returns errors if the sortents dictionary cannot be opened,
- // doesn't exist, and createIfNecessary
- // is false, or if createIfNecessary is true, but
- // the BTR is not open for write, or if its
- // extension dictionary could not be created or
- // opened.
- //
- Acad::ErrorStatus
- getSortentsTable(AcDbSortentsTable*& pSortents,
- AcDb::OpenMode openMode,
- bool createIfNecessary=false);
- AcDbDatabase* xrefDatabase(bool incUnres = false) const;
- bool isUnloaded() const;
- Acad::ErrorStatus setIsUnloaded(bool isUnloaded);
- AcDb::XrefStatus xrefStatus() const;
- // Drawable API
- //
- AcGiDrawable* drawable();
- virtual Acad::ErrorStatus decomposeForSave(AcDb::AcDbDwgVersion ver,
- AcDbObject*& replaceObj,
- AcDbObjectId& replaceId,
- Adesk::Boolean& exchangeXData);
- virtual Acad::ErrorStatus assumeOwnershipOf(AcArray <AcDbObjectId> entitiesToMove);
- // Block scaling and exploding control
- enum BlockScaling {
- kAny,
- kUniform
- };
- AcDbBlockTableRecord::BlockScaling blockScaling () const;
- Acad::ErrorStatus setBlockScaling (
- AcDbBlockTableRecord::BlockScaling blockScaling);
- Acad::ErrorStatus setExplodable (bool bExplodable);
- bool explodable () const;
- Acad::ErrorStatus setBlockInsertUnits(AcDb::UnitsValue insunits);
- AcDb::UnitsValue blockInsertUnits() const;
- Acad::ErrorStatus postProcessAnnotativeBTR(int& stripCnt, const bool bqueryOnly = false,
- const bool bScale = true);
- Acad::ErrorStatus addAnnoScalestoBlkRefs(const bool bScale = false);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbLayerTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbLayerTableRecord);
- AcDbLayerTableRecord();
- virtual ~AcDbLayerTableRecord();
- typedef AcDbLayerTable TableType;
- bool isFrozen() const;
- Acad::ErrorStatus setIsFrozen(bool frozen);
- bool isOff() const;
- void setIsOff(bool off);
- bool VPDFLT() const;
- void setVPDFLT(bool frozen);
- bool isLocked() const;
- void setIsLocked(bool locked);
- AcCmColor color() const;
- void setColor(const AcCmColor &color);
- AcCmEntityColor entityColor(void) const;
- AcCmTransparency transparency(void) const;
- Acad::ErrorStatus setTransparency(const AcCmTransparency& trans);
- AcDbObjectId linetypeObjectId() const;
- void setLinetypeObjectId(AcDbObjectId id);
- AcDbObjectId materialId() const;
- Acad::ErrorStatus setMaterialId(AcDbObjectId id);
- enum { kDxfLayerPlotBit = AcDb::kDxfBool };
- bool isPlottable() const;
- Acad::ErrorStatus setIsPlottable(bool plot);
- AcDb::LineWeight lineWeight() const;
- Acad::ErrorStatus setLineWeight(AcDb::LineWeight weight);
- ACHAR* plotStyleName() const;
- AcDbObjectId plotStyleNameId() const;
- Acad::ErrorStatus setPlotStyleName(const ACHAR* newName);
- Acad::ErrorStatus setPlotStyleName(const AcDbObjectId& newId);
- // Drawable API
- //
- AcGiDrawable* drawable();
- bool isInUse() const;
- ACHAR* description() const;
- Acad::ErrorStatus setDescription(const ACHAR* description);
- bool isHidden() const;
- Acad::ErrorStatus setIsHidden(bool on);
- static bool isHidden(AcDbObjectId);
- // Property override API
- //
- AcCmColor color(const AcDbObjectId& viewportId, bool& isOverride) const;
- Acad::ErrorStatus setColor(const AcCmColor& color,
- const AcDbObjectId& viewportId);
- AcDbObjectId linetypeObjectId(const AcDbObjectId& viewportId, bool& isOverride) const;
- Acad::ErrorStatus setLinetypeObjectId(const AcDbObjectId& id,
- const AcDbObjectId& viewportId);
- AcDb::LineWeight lineWeight(const AcDbObjectId& viewportId, bool& isOverride) const;
- Acad::ErrorStatus setLineWeight(AcDb::LineWeight weight,
- const AcDbObjectId& viewportId);
- ACHAR* plotStyleName(const AcDbObjectId& viewportId, bool& isOverride) const;
- AcDbObjectId plotStyleNameId(const AcDbObjectId& viewportId, bool& isOverride) const;
- Acad::ErrorStatus setPlotStyleName(const ACHAR* newName,
- const AcDbObjectId& viewportId);
- Acad::ErrorStatus setPlotStyleName(const AcDbObjectId& newId,
- const AcDbObjectId& viewportId);
- AcCmTransparency transparency(const AcDbObjectId& viewportId, bool& isOvr) const;
- Acad::ErrorStatus setTransparency(const AcCmTransparency& trans,
- const AcDbObjectId& viewportId);
-
- Acad::ErrorStatus removeColorOverride(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removeLinetypeOverride(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removeLineWeightOverride(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removePlotStyleOverride(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removeTransparencyOverride(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removeViewportOverrides(const AcDbObjectId& viewportId);
- Acad::ErrorStatus removeAllOverrides();
- bool hasOverrides(const AcDbObjectId& viewportId) const;
- bool hasAnyOverrides() const;
- bool isReconciled() const;
- Acad::ErrorStatus setIsReconciled(bool bReconcile = true);
- static bool isReconciled(const AcDbObjectId& id);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- // Utility for changing Layer Table Records in the Current Drawing
- Acad::ErrorStatus applyCurDwgLayerTableChanges();
- // AcDbTextStyleTableRecord:
- class AcDbTextStyleTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbTextStyleTableRecord);
- AcDbTextStyleTableRecord();
- virtual ~AcDbTextStyleTableRecord();
- typedef AcDbTextStyleTable TableType;
- Adesk::Boolean isShapeFile() const;
- void setIsShapeFile(Adesk::Boolean shape);
- Adesk::Boolean isVertical() const;
- void setIsVertical(Adesk::Boolean vertical);
- double textSize() const;
- Acad::ErrorStatus setTextSize(double size);
- double xScale() const;
- Acad::ErrorStatus setXScale(double xScale);
- double obliquingAngle() const;
- Acad::ErrorStatus setObliquingAngle(double obliquingAngle);
- Adesk::UInt8 flagBits() const;
- void setFlagBits(Adesk::UInt8 flagBits);
- double priorSize() const;
- Acad::ErrorStatus setPriorSize(double priorSize);
- Acad::ErrorStatus fileName(ACHAR*& fileName) const;
- Acad::ErrorStatus fileName(const ACHAR*& fileName) const;
- Acad::ErrorStatus setFileName(const ACHAR* fileName);
- Acad::ErrorStatus bigFontFileName(ACHAR*& fileName) const;
- Acad::ErrorStatus bigFontFileName(const ACHAR*& fileName) const;
- Acad::ErrorStatus setBigFontFileName(const ACHAR* fileName);
- Acad::ErrorStatus setFont(const ACHAR* pTypeface, Adesk::Boolean bold,
- Adesk::Boolean italic, int charset, int pitchAndFamily);
- Acad::ErrorStatus font (ACHAR*& pTypeface, Adesk::Boolean& bold, Adesk::Boolean& italic,
- int& charset, int& pitchAndFamily) const;
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbLinetypeTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbLinetypeTableRecord);
- AcDbLinetypeTableRecord();
- virtual ~AcDbLinetypeTableRecord();
- typedef AcDbLinetypeTable TableType;
- Acad::ErrorStatus comments(ACHAR*& pString) const;
- Acad::ErrorStatus comments(const ACHAR*& pString) const;
- Acad::ErrorStatus setComments(const ACHAR* pString);
- Acad::ErrorStatus asciiDescription(ACHAR*& pString) const
- { return comments(pString); }
- Acad::ErrorStatus asciiDescription(const ACHAR*& pString) const
- { return comments(pString); }
- Acad::ErrorStatus setAsciiDescription(const ACHAR* pString)
- { return setComments(pString); }
- double patternLength() const;
- void setPatternLength(double patternLength);
- int numDashes() const;
- void setNumDashes(int count);
- double dashLengthAt(int index) const;
- void setDashLengthAt(int index , double value);
- AcDbObjectId shapeStyleAt(int index) const;
- void setShapeStyleAt(int index, AcDbObjectId id);
- int shapeNumberAt(int index) const;
- void setShapeNumberAt(int index, int shapeNumber);
- AcGeVector2d shapeOffsetAt(int index) const;
- void setShapeOffsetAt(int index, const AcGeVector2d& offset);
- double shapeScaleAt(int index) const;
- void setShapeScaleAt(int index, double scale);
- bool isScaledToFit() const;
- void setIsScaledToFit(bool scaledToFit);
- bool shapeIsUcsOrientedAt(int index) const;
- void setShapeIsUcsOrientedAt(int index, bool isUcsOriented);
- bool shapeIsUprightAt(int index) const;
- void setShapeIsUprightAt(int index, bool isUpright);
- double shapeRotationAt(int index) const;
- void setShapeRotationAt(int index, double rotation);
- Acad::ErrorStatus textAt(int index, ACHAR*& text) const;
- Acad::ErrorStatus textAt(int index, const ACHAR*& text) const;
- Acad::ErrorStatus setTextAt(int index, const ACHAR* text);
- // Drawable API
- //
- AcGiDrawable* drawable();
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class ADESK_NO_VTABLE AcDbAbstractViewTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbAbstractViewTableRecord);
- AcDbAbstractViewTableRecord();
- virtual ~AcDbAbstractViewTableRecord();
- AcGePoint2d centerPoint() const;
- void setCenterPoint(const AcGePoint2d&);
- double height() const;
- void setHeight(double height);
- double width() const;
- void setWidth(double width);
- AcGePoint3d target() const;
- void setTarget(const AcGePoint3d& target);
- AcGeVector3d viewDirection() const;
- void setViewDirection(const AcGeVector3d& viewDirection);
- double viewTwist() const;
- void setViewTwist(double angle);
- double lensLength() const;
- void setLensLength(double length);
- double frontClipDistance() const;
- void setFrontClipDistance(double distance);
- double backClipDistance() const;
- void setBackClipDistance(double distance);
- bool perspectiveEnabled() const;
- void setPerspectiveEnabled(bool enabled);
- bool frontClipEnabled() const;
- void setFrontClipEnabled(bool enabled);
- bool backClipEnabled() const;
- void setBackClipEnabled(bool enabled);
- bool frontClipAtEye() const;
- void setFrontClipAtEye(bool atEye);
- // Background
- const AcDbObjectId& background() const;
- AcDbObjectId& background();
- Acad::ErrorStatus setBackground(const AcDbObjectId& backgroundId);
- // VisualStyle
- AcDbObjectId visualStyle() const;
- Acad::ErrorStatus setVisualStyle(const AcDbObjectId& visualStyleId);
- // Viewport Lighting
- //
- bool isDefaultLightingOn() const;
- Acad::ErrorStatus setDefaultLightingOn(bool on);
- AcGiViewportTraits::DefaultLightingType defaultLightingType() const;
- Acad::ErrorStatus setDefaultLightingType(AcGiViewportTraits::DefaultLightingType typ);
- // Brightness controls the relative intensity of lights.
- double brightness() const;
- Acad::ErrorStatus setBrightness(double);
- // Contrast controls intensity of ambient light, relative to other lights.
- double contrast() const;
- Acad::ErrorStatus setContrast(double);
- AcCmColor ambientLightColor() const;
- Acad::ErrorStatus setAmbientLightColor(const AcCmColor& clr);
- // A single sun (distant light) can be associated with each viewport.
- AcDbObjectId sunId() const;
- Acad::ErrorStatus setSun(AcDbObjectId &retId, AcDbObject *pSun);
- Acad::ErrorStatus setSun(AcDbObjectId &retId, AcDbObject *pSun, bool eraseOldSun);
- // Tone operator parameters
- Acad::ErrorStatus toneOperatorParameters(AcGiToneOperatorParameters& params) const;
- Acad::ErrorStatus setToneOperatorParameters(const AcGiToneOperatorParameters& params);
- // UCS query methods.
- //
- Acad::ErrorStatus getUcs ( AcGePoint3d& origin,
- AcGeVector3d& xAxis,
- AcGeVector3d& yAxis ) const;
- bool isUcsOrthographic ( AcDb::OrthographicView& view ) const;
- AcDbObjectId ucsName () const;
- double elevation () const;
- // UCS set methods.
- //
- Acad::ErrorStatus setUcs ( const AcGePoint3d& origin,
- const AcGeVector3d& xAxis,
- const AcGeVector3d& yAxis );
- Acad::ErrorStatus setUcs ( AcDb::OrthographicView view );
- Acad::ErrorStatus setUcs ( const AcDbObjectId& ucsId );
- Acad::ErrorStatus setUcsToWorld ();
- Acad::ErrorStatus setElevation ( double elev );
-
- // Orthographic view methods.
- //
- bool isViewOrthographic ( AcDb::OrthographicView& view ) const;
- Acad::ErrorStatus setViewDirection ( AcDb::OrthographicView view );
- };
- class AcDbViewTableRecord: public AcDbAbstractViewTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbViewTableRecord);
- AcDbViewTableRecord();
- virtual ~AcDbViewTableRecord();
- typedef AcDbViewTable TableType;
- Acad::ErrorStatus setParametersFromViewport(AcDbObjectId objId);
- bool isPaperspaceView() const;
- void setIsPaperspaceView(bool pspace);
-
- bool isUcsAssociatedToView () const;
- Acad::ErrorStatus disassociateUcsFromView ();
- Acad::ErrorStatus getCategoryName(ACHAR *& categoryName) const;
- Acad::ErrorStatus setCategoryName(const ACHAR * categoryName);
- Acad::ErrorStatus getLayerState(ACHAR*& layerStateName) const;
- Acad::ErrorStatus setLayerState(const ACHAR *layerStateName);
-
- Acad::ErrorStatus getLayout (AcDbObjectId& layoutId) const;
- Acad::ErrorStatus setLayout(AcDbObjectId layoutId);
- bool isViewAssociatedToViewport () const;
- Acad::ErrorStatus setViewAssociatedToViewport (bool bVPflag);
- bool isCameraPlottable () const;
- Acad::ErrorStatus setIsCameraPlottable (bool plottable);
- // Live Section
- AcDbObjectId liveSection() const;
- Acad::ErrorStatus setLiveSection(const AcDbObjectId& liveSectionId);
- #if defined(_WINDOWS_) || defined(_ADESK_MAC_)
- /// <summary>
- /// This function provides BITMAP thumbnail of view as output
- /// </summary>
- /// <param name="thumbnail"> A reference to a pointer of Bitmap thumbnail, containing header and pixels </param>
- /// <returns> This will return Acad::eOk if thumbnail is successfully retrieved. It returns error status otherwise </returns>
- ///
- Acad::ErrorStatus getThumbnail (BITMAPINFO*& thumbnail) const;
- /// <summary>
- /// This function sets BITMAP thumbnail into view
- /// </summary>
- /// <param name="thumbnail"> A pointer of Bitmap thumbnail to be set into view </param>
- /// <returns> This will return Acad::eOk if thumbnail is successfully set. It returns error status otherwise </returns>
- ///
- Acad::ErrorStatus setThumbnail(const BITMAPINFO * thumbnail);
- /// <summary>
- /// This function provides Atil::Image thumbnail of view as output
- /// </summary>
- /// <param name="pPreviewImage"> A reference to the pointer of Atil::Image thumbnail </param>
- /// <returns> This will return Acad::eOk if thumbnail is successfully retrieved. It returns error status otherwise </returns>
- /// <remarks> Internal use only </remarks>
- ///
- Acad::ErrorStatus getPreviewImage(Atil::Image*& pPreviewImage) const;
- /// <summary>
- /// This functions sets Atil::Image thumbnail into view
- /// </summary>
- /// <param name="pPreviewImage"> A pointer of Atil::Image thumbnail to be set into view </param>
- /// <returns> This will return Acad::eOk if thumbnail is successfully set. It returns error status otherwise </returns>
- /// <remarks> Internal use only </remarks>
- ///
- Acad::ErrorStatus setPreviewImage (const Atil::Image * pPreviewImage);
- #endif // _WINDOWS_ || _ADESK_MAC_
- // Camera methods
- AcDbObjectId camera () const;
- Acad::ErrorStatus setCamera(AcDbObjectId cameraId);
- // Annotation scaling methods
- // Caller of this method will have to delete the AcDbAnnotationScale object
- // that is returned
- AcDbAnnotationScale* annotationScale() const;
- Acad::ErrorStatus setAnnotationScale(const AcDbAnnotationScale* pScaleObj);
- // A single sun (distant light) can be associated with each view.
- AcDbObjectId sunId() const;
- Acad::ErrorStatus setSun(AcDbObjectId &retId, AcDbObject *pSun);
- Acad::ErrorStatus setSun(AcDbObjectId &retId, AcDbObject *pSun, bool eraseOldSun);
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbUCSTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbUCSTableRecord);
- AcDbUCSTableRecord();
- virtual ~AcDbUCSTableRecord();
- typedef AcDbUCSTable TableType;
- AcGePoint3d origin() const;
- void setOrigin(const AcGePoint3d& newOrigin);
- AcGeVector3d xAxis() const;
- void setXAxis(const AcGeVector3d& xAxis);
- AcGeVector3d yAxis() const;
- void setYAxis(const AcGeVector3d& yAxis);
- AcGePoint3d ucsBaseOrigin ( AcDb::OrthographicView view ) const;
- Acad::ErrorStatus setUcsBaseOrigin ( const AcGePoint3d& origin,
- AcDb::OrthographicView view );
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbViewportTableRecord: public AcDbAbstractViewTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbViewportTableRecord);
- AcDbViewportTableRecord();
- virtual ~AcDbViewportTableRecord();
- typedef AcDbViewportTable TableType;
- Adesk::Int16 number() const;
- AcGePoint2d lowerLeftCorner() const;
- void setLowerLeftCorner(const AcGePoint2d& pt);
- AcGePoint2d upperRightCorner() const;
- void setUpperRightCorner(const AcGePoint2d& pt);
- bool ucsFollowMode() const;
- void setUcsFollowMode(bool enabled);
- Adesk::UInt16 circleSides() const;
- void setCircleSides(Adesk::UInt16 circleSides);
- bool fastZoomsEnabled() const { return true; }
- void setFastZoomsEnabled(bool enabled)
- {
- enabled; // avoid unreferenced parameter warning
- }
- bool iconEnabled() const;
- void setIconEnabled(bool enabled);
- bool iconAtOrigin() const;
- void setIconAtOrigin(bool atOrigin);
- bool gridEnabled() const;
- void setGridEnabled(bool enabled);
- AcGePoint2d gridIncrements() const;
- void setGridIncrements(const AcGePoint2d& base);
- bool snapEnabled() const;
- void setSnapEnabled(bool enabled);
- bool isometricSnapEnabled() const;
- void setIsometricSnapEnabled(bool enabled);
- Adesk::Int16 snapPair() const;
- void setSnapPair(Adesk::Int16 pairType);
- double snapAngle() const;
- void setSnapAngle(double angle);
- AcGePoint2d snapBase() const;
- void setSnapBase(const AcGePoint2d& base);
- AcGePoint2d snapIncrements() const;
- void setSnapIncrements(const AcGePoint2d& base);
- void setGsView(AcGsView* pView);
- AcGsView* gsView() const;
- bool isUcsSavedWithViewport () const;
- void setUcsPerViewport ( bool ucsvp );
- // GridDisplay
- bool isGridBoundToLimits() const;
- void setGridBoundToLimits(bool enabled);
-
- bool isGridAdaptive() const;
- void setGridAdaptive(bool enabled);
-
- bool isGridSubdivisionRestricted() const;
- void setGridSubdivisionRestricted(bool enabled);
-
- bool isGridFollow() const;
- void setGridFollow(bool enabled);
- Adesk::Int16 gridMajor() const;
- void setGridMajor(Adesk::Int16 value);
- // Background
- Acad::ErrorStatus setBackground(const AcDbObjectId& backgroundId);
- AcDbObjectId previousBackground(AcGiDrawable::DrawableType type
- = AcGiDrawable::kGeometry) const;
- Acad::ErrorStatus setPreviousBackground(AcDbObjectId backgroundId,
- AcGiDrawable::DrawableType type
- = AcGiDrawable::kGeometry);
- Acad::ErrorStatus setPreviousBackground(AcDbObjectId backgroundId,
- AcGiDrawable::DrawableType type,
- bool bForcedSwitch);
- bool previousBackgroundForcedSwitch (void) const;
-
- // Drawable API
- //
- AcGiDrawable* drawable();
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbRegAppTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbRegAppTableRecord);
- AcDbRegAppTableRecord();
- virtual ~AcDbRegAppTableRecord();
- typedef AcDbRegAppTable TableType;
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- class AcDbDimStyleTableRecord: public AcDbSymbolTableRecord
- {
- public:
- ACDB_DECLARE_MEMBERS(AcDbDimStyleTableRecord);
- AcDbDimStyleTableRecord();
- virtual ~AcDbDimStyleTableRecord();
- typedef AcDbDimStyleTable TableType;
- // Dimension variable api:
- //
- #undef DBDIMVAR_H // force the file to get read again
- #include "dbdimvar.h"
- AcDbObjectId arrowId(AcDb::DimArrowFlags whichArrow) const;
- // DEPRECATED METHODS!
- // These are supported but will be removed in future releases:
- //
- Acad::ErrorStatus getDimpost(ACHAR*& pOutput) const;
- Acad::ErrorStatus getDimapost(ACHAR*& pOutput) const;
- Acad::ErrorStatus getDimblk(ACHAR*& pOutput) const;
- Acad::ErrorStatus getDimblk1(ACHAR*& pOutput) const;
- Acad::ErrorStatus getDimblk2(ACHAR*& pOutput) const;
- int dimfit() const;
- int dimunit() const;
- Acad::ErrorStatus setDimfit(int fit);
- Acad::ErrorStatus setDimunit(int unit);
- //
- // end DEPRECATED METHODS!
- bool isModifiedForRecompute() const;
- protected:
- virtual Acad::ErrorStatus subGetClassID(CLSID* pClsid) const;
- };
- #pragma pack(pop)
- #endif
|