6 #if !defined(AFX_APSTRUCT_H__8AF11CB5_DF71_4FAB_B7AD_58FBFA0D308F__INCLUDED_)
7 #define AFX_APSTRUCT_H__8AF11CB5_DF71_4FAB_B7AD_58FBFA0D308F__INCLUDED_
13 #include "Utility/wstring.h"
50 std::wstring destination;
52 std::wstring behavior;
61 DRect
GetBounds(
bool locus =
false)
const;
63 DRect
GetBoundsList(vector<PicElement>
const& elList,
bool locus =
false)
const;
65 void Draw(
CDrawBase *pDB,
bool showRegions =
false,
bool exportAps =
false);
71 bool HitTest(DPoint point,
double margin)
const;
73 void AddName(std::wstring name);
83 void AddLinkURI(std::wstring dest, std::wstring title, std::wstring behavior);
85 long AddRegion(
long type, DPoint *points,
long nPoints);
113 DPoint m_viewContext[2];
124 vector<CGMI_SDR> SDRList;
126 vector<customAttr> m_custom;
134 void DrawList(vector<PicElement> &elList,
CDrawBase *pDB,
bool showRegions =
false,
bool exportAps =
false);
135 bool HitTestList(vector<PicElement>
const& elList, DPoint point,
double margin)
const;
136 void TransformByList(vector<PicElement> &elList,
CMatrix* pXF);
137 bool RectangleTest(DPoint pts[4]);
143 #endif // !defined(AFX_APSTRUCT_H__8AF11CB5_DF71_4FAB_B7AD_58FBFA0D308F__INCLUDED_)
std::wstring m_layerDesc
APS Layer Description Attribute.
Definition: AppStruct.h:98
std::wstring m_id
APS ID.
Definition: AppStruct.h:94
void AddStringAttr(std::wstring type, std::wstring str)
add custom APS string attribute
Definition: AppStruct.cpp:496
long AddRegion(long type, DPoint *points, long nPoints)
add APS Region attribute and return zero-based index the region added
Definition: AppStruct.cpp:52
long m_visibility
APS Visibility Attribute.
Definition: AppStruct.h:117
long m_inheritance
inheritance flag;
Definition: AppStruct.h:120
CElementList * RegionsToObjList() const
Transform APS contents by specfied matrix.
Definition: AppStruct.cpp:516
CAppStruct(std::wstring id, std::wstring type, CCgmObjects *pOwner)
Constructor.
Definition: AppStruct.cpp:28
void AddLinkURI(std::wstring dest, std::wstring title, std::wstring behavior)
add APS linkURI attribute
Definition: AppStruct.cpp:79
DRect GetBounds(bool locus=false) const
Get APS bounds.
Definition: AppStruct.cpp:646
void RemoveCustomAttrs()
remove all custom attributes
Definition: AppStruct.cpp:411
CAppStruct * Clone()
make a copy of this object
Definition: AppStruct.cpp:720
std::wstring m_content
APS Content Attribute.
Definition: AppStruct.h:96
void Restore(CAppStruct *pAppStruct)
restore the contents of this object from a copy
Definition: AppStruct.cpp:484
long m_nRegions
number of Region Attribute(s)
Definition: AppStruct.h:108
std::wstring m_type
APS type; grobject, layer,...
Definition: AppStruct.h:112
Custom APS Attribute (non-standard, not defined by a profile)
Definition: AppStruct.h:122
APS LinkURI attribute structure.
Definition: AppStruct.h:48
void RemoveRegion(int index)
Remove APS Region by index.
Definition: AppStruct.cpp:463
std::vector< std::wstring > m_names
APS Name Attribute(s)
Definition: AppStruct.h:104
void AddName(std::wstring name)
add APS Name attribute
Definition: AppStruct.cpp:491
CElementList – Picture elements list.
Definition: ElementList.h:69
DRect GetBoundsList(vector< PicElement > const &elList, bool locus=false) const
Get APS bounds in elList.
Definition: AppStruct.cpp:686
gRegion * m_regions
APS Region Attribute(s)
Definition: AppStruct.h:106
CDrawBase – drawing base class from which all output specific draw classes are derived.
Definition: DrawBase.h:19
APS Region attribute structure.
Definition: AppStruct.h:40
void Draw(CDrawBase *pDB, bool showRegions=false, bool exportAps=false)
Draw APS contents.
Definition: AppStruct.cpp:90
std::vector< LinkURI > m_linkURIs
APS linkURI Attribute(s)
Definition: AppStruct.h:102
void RemoveRegions()
Remove all APS Region attributes.
Definition: AppStruct.cpp:450
CMatrix * m_pXForm
local transform matrix for this APS
Definition: AppStruct.h:131
CAppStruct – Application Structure (APS) container class.
Definition: AppStruct.h:23
long m_interactivity
APS Interactivity Attribute.
Definition: AppStruct.h:115
CMatrix – transform matrix class.
Definition: Matrix.h:16
bool HitTest(DPoint point, double margin) const
true if point touches this a region or element in this APS within margin
Definition: AppStruct.cpp:244
void AssignAutoId(int &autoAPSIdNumber)
generate a sequential id
Definition: AppStruct.cpp:798
std::wstring m_screenTip
APS ScreenTip Attribute(s)
Definition: AppStruct.h:110
std::wstring m_layerName
APS Layer Name Attribute.
Definition: AppStruct.h:100
CCgmObjects * m_pOwner
pointer to owner of this APS
Definition: AppStruct.h:129
CCgmObjects – CGM Picture container.
Definition: CgmObjects.h:472
void TransformBy(CMatrix *pXF)
Transform APS contents by specfied matrix.
Definition: AppStruct.cpp:345