CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Public Attributes | List of all members
Larson::CAppStruct Class Reference

CAppStruct – Application Structure (APS) container class. More...

#include <AppStruct.h>

Inheritance diagram for Larson::CAppStruct:
Larson::CElementList

Classes

struct  CGMI_SDR
 
struct  customAttr
 Custom APS Attribute (non-standard, not defined by a profile) More...
 
struct  gRegion
 APS Region attribute structure. More...
 
struct  LinkURI
 APS LinkURI attribute structure. More...
 

Public Member Functions

 CAppStruct (std::wstring id, std::wstring type, CCgmObjects *pOwner)
 Constructor.
 
void operator= (const CAppStruct &a)
 
DRect GetBounds (bool locus=false) const
 Get APS bounds.
 
DRect GetBoundsList (vector< PicElement > const &elList, bool locus=false) const
 Get APS bounds in elList.
 
void Draw (CDrawBase *pDB, bool showRegions=false, bool exportAps=false)
 Draw APS contents.
 
void TransformBy (CMatrix *pXF)
 Transform APS contents by specfied matrix.
 
CElementListRegionsToObjList () const
 Transform APS contents by specfied matrix.
 
bool HitTest (DPoint point, double margin) const
 true if point touches this a region or element in this APS within margin
 
void AddName (std::wstring name)
 add APS Name attribute
 
void RemoveRegions ()
 Remove all APS Region attributes.
 
void RemoveRegion (int index)
 Remove APS Region by index.
 
void AddStringAttr (std::wstring type, std::wstring str)
 add custom APS string attribute
 
void RemoveCustomAttrs ()
 remove all custom attributes
 
void AddLinkURI (std::wstring dest, std::wstring title, std::wstring behavior)
 add APS linkURI attribute
 
long AddRegion (long type, DPoint *points, long nPoints)
 add APS Region attribute and return zero-based index the region added
 
void Restore (CAppStruct *pAppStruct)
 restore the contents of this object from a copy
 
CAppStructClone ()
 make a copy of this object
 
void AssignAutoId (int &autoAPSIdNumber)
 generate a sequential id
 
- Public Member Functions inherited from Larson::CElementList
 CElementList ()
 Constructor.
 
void add (CCgmBaseObj *pObj)
 add graphical element
 
void add (CAppStruct *pAppStruct)
 add Application Structure
 
void add (CSegment *pSegment)
 add local segment list
 
void add (PicElement &elem)
 add element
 
int find (PicElement &elem)
 find element in list
 
bool erase (int index)
 erase element at specified index in elements list
 
bool insert (int index, PicElement &elem)
 insert element in elements list
 

Public Attributes

std::wstring m_id
 APS ID.
 
std::wstring m_content
 APS Content Attribute.
 
std::wstring m_layerDesc
 APS Layer Description Attribute.
 
std::wstring m_layerName
 APS Layer Name Attribute.
 
std::vector< LinkURIm_linkURIs
 APS linkURI Attribute(s)
 
std::vector< std::wstring > m_names
 APS Name Attribute(s)
 
gRegionm_regions
 APS Region Attribute(s)
 
long m_nRegions
 number of Region Attribute(s)
 
std::wstring m_screenTip
 APS ScreenTip Attribute(s)
 
std::wstring m_type
 APS type; grobject, layer,...
 
DPoint m_viewContext [2]
 
long m_interactivity
 APS Interactivity Attribute.
 
long m_visibility
 APS Visibility Attribute.
 
long m_inheritance
 inheritance flag;
 
vector< customAttrm_custom
 
CCgmObjectsm_pOwner
 pointer to owner of this APS
 
CMatrixm_pXForm
 local transform matrix for this APS
 
- Public Attributes inherited from Larson::CElementList
std::vector< PicElementm_elements
 elements list
 
CElementListm_pParent
 pointer to owner of this element list
 
int m_growSize
 

Detailed Description

CAppStruct – Application Structure (APS) container class.


The documentation for this class was generated from the following files: