6 #pragma message("*********************************************")
7 #pragma message("*** MakeCgmObjs is a work in progress *******")
8 #pragma message("*** ToDo: Figures, ApsStruct ***")
9 #pragma message("*********************************************")
11 #include "CgmObjects/CgmObj.h"
24 CCgmBaseObj::Transparency transparency;
25 Larson::CColor auxColor;
27 Larson::CColor lineColor;
29 CCgmBaseObj::LineCapIndicator edge;
30 CCgmBaseObj::LineCapIndicator dash;
32 CCgmBaseObj::LineJoinIndicator lineJoin;
33 CCgmBaseObj::LineTypeContinuation lineCont;
34 CCgmBaseObj::LineType lineType;
35 double lineTypeInitial;
37 CCgmBaseObj::SpecMode lineWidthSpecMode;
39 Larson::CColor markerColor;
40 CCgmBaseObj::MarkerType markerType;
44 long characterSetIndex;
45 long altCharacterSetIndex;
46 double characterExpFactor;
47 double characterSpacing;
48 Larson::CColor textColor;
49 double characterHeight;
50 CCgmBaseObj::TextScoreType textScoreType;
51 CCgmBaseObj::RestrTextType restrTextType;
55 } characterOrientation;
56 CCgmBaseObj::TextPath textPath;
58 CCgmBaseObj::TextAlignmentHorizontal horizontal;
59 CCgmBaseObj::TextAlignmentVertical vertical;
63 CCgmBaseObj::InteriorStyle interiorStyle;
64 Larson::CColor fillColor;
65 CCgmBaseObj::HatchIndex hatchIndex;
67 CCgmBaseObj::InterpolatedInteriorStyle interpolatedInterior;
72 DPoint patternRefPoint;
73 CCgmBaseObj::SpecMode interiorStyleSpecMode;
74 CCgmBaseObj::Transparency transparentCellIndicator;
75 CColor transparentCellColor;
77 CCgmBaseObj::EdgeVisibility edgeVisible;
78 Larson::CColor edgeColor;
80 CCgmBaseObj::DashCapIndicator edge;
81 CCgmBaseObj::LineCapIndicator dash;
83 CCgmBaseObj::LineJoinIndicator edgeJoin;
84 CCgmBaseObj::LineTypeContinuation edgeCont;
85 CCgmBaseObj::LineType edgeType;
86 double edgeTypeInitial;
88 CCgmBaseObj::SpecMode edgeWidthSpecMode;
93 long currentTileNumber;
97 long protectionRegionIndicator;
98 Path *pProtectionRegionPath;
121 long colorPrecision,
void *colorSpecifiers,
long compressionLength,
131 DPoint endVec,
double radius, CCgmBaseObj::ArcClosureType closureType,
141 DPoint startVec, DPoint endVec, CCgmBaseObj::ArcClosureType closureType,
147 static CCgmBaseObj* Poly(CCgmBaseObj::Shape shape, DPoint* pts,
long nPts,
192 CCgmBaseObj::CellPathDirection cellPathDirection,
193 CCgmBaseObj::LineProgressionDirection lineProgressionDirection,
194 long numTilePathDirection,
long numTileLineDirection,
195 long numCellPathDirection,
long numCellLineDirection,
196 double cellSizePathDirection,
double cellSizeLineDirection,
197 long imageOffsetPathDirection,
long imageOffsetLineDirection,
198 long imageNumCellPathDirection,
long imageNumCellLine,
208 static long EitherTile(
bool bBitonalTile, CCgmBaseObj::TileCompressionType compressionType,
209 long cellColorPrecision, CColor biBgc, CColor biFgc,
void *parameters,
210 void *colorSpecifiers,
long colorSpecifiersSize,
CCgmObjects* pOwner,
216 static long BiTonalTile(CCgmBaseObj::TileCompressionType compressionType,
220 void *colorSpecifiers,
221 long colorSpecifiersSize,
225 static long Tile(CCgmBaseObj::TileCompressionType compressionType,
226 long cellColorPrecision,
void *parameters,
227 void *colorSpecifiers,
228 long colorSpecifiersSize,
static long BiTonalTile(CCgmBaseObj::TileCompressionType compressionType, CColor bgc, CColor fgc, void *parameters, void *colorSpecifiers, long colorSpecifiersSize, CCgmObjects *pOwner, CCgmAttrState *pAttr)
add a bi-tonal (1 bit per cell) tile to a Tile Array object (CCgmTileArray)
Definition: MakeCgmObjs.cpp:981
static CCgmBaseObj * Polymarker(DPoint *pts, long nPts, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Polygon Marker object (a variant of CCgmPolyline) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:628
static CCgmBaseObj * Polyline(DPoint *pts, long nPts, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Polyline object (CCgmPolyline) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:604
static CCgmBaseObj * CellArray(DPoint p, DPoint q, DPoint r, long nx, long ny, long colorPrecision, void *colorSpecifiers, long compressionLength, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Cell Array object (CCgmCellArray) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:257
static CCgmBaseObj * Rectangle(DPoint pt1, DPoint pt2, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Rectangle object (CCgmRect) from parameters and current state list
Definition: MakeCgmObjs.cpp:515
static CCgmBaseObj * AppendText(bool final, std::wstring text, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Append Text object (a variant of CCgmText) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:770
static CCgmBaseObj * RestrictedText(double width, double height, DPoint pt, bool final, std::wstring text, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Restricted Text object (a variant of CCgmText) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:801
static CCgmBaseObj * EndTileArray(CCgmObjects *pOwner, CCgmAttrState *pAttr)
end construction of a Tile Array object (CCgmTileArray)
Definition: MakeCgmObjs.cpp:1005
static long BeginTileArray(DPoint position, CCgmBaseObj::CellPathDirection cellPathDirection, CCgmBaseObj::LineProgressionDirection lineProgressionDirection, long numTilePathDirection, long numTileLineDirection, long numCellPathDirection, long numCellLineDirection, double cellSizePathDirection, double cellSizeLineDirection, long imageOffsetPathDirection, long imageOffsetLineDirection, long imageNumCellPathDirection, long imageNumCellLine, CCgmObjects *pOwner, CCgmAttrState *pAttr)
Definition: MakeCgmObjs.cpp:840
static CCgmBaseObj * Ellipse(DPoint center, DPoint cdp1, DPoint cdp2, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Ellipse object (CCgmEllipse) from parameters and current state list
Definition: MakeCgmObjs.cpp:454
static CCgmBaseObj * CircularArcCenter(DPoint center, DPoint startVec, DPoint endVec, double radius, CCgmBaseObj::ArcClosureType closureType, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Circular Arc Center object (a variant of CCgmCircle) from parameters and current state li...
Definition: MakeCgmObjs.cpp:390
static CCgmBaseObj * CircularArcCenterRev(DPoint center, DPoint startVec, DPoint endVec, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Circular Arc Center Reverse object (a variant of CCgmCircle) from parameters and current ...
Definition: MakeCgmObjs.cpp:429
static CCgmBaseObj * Text(DPoint pt, bool final, std::wstring text, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Text object (CCgmText) from parameters and current state list
Definition: MakeCgmObjs.cpp:725
Path – graphical path data container class.
Definition: Path.h:17
static CCgmBaseObj * DisjointPolyline(DPoint *pts, long nPts, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Disjoint Polyline object (a variant of CCgmPolyline) from parameters and current state li...
Definition: MakeCgmObjs.cpp:610
static CCgmBaseObj * Polygon(DPoint *pts, long nPts, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Polygon object (a variant of CCgmPolyline) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:616
static CCgmBaseObj * PolyBezier(CCgmBaseObj::ContinuityIndicator continuityIndicator, DPoint *pts, long nPts, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Poly Bezier object (a variant of CCgmPolyline) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:636
MakeCgmObjs – CGM primitive object creation functions.
Definition: MakeCgmObjs.h:104
static CCgmBaseObj * PolygonSet(DPoint *pts, long nPts, CCgmBaseObj::EdgeFlags *flags, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Polygon Set object (a variant of CCgmPolyline) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:622
static CCgmBaseObj * CircularArc3Pt(DPoint start, DPoint mid, DPoint end, CCgmBaseObj::ArcClosureType closureType, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Circular Arc 3Pt object (a variant of CCgmCircle) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:352
CCgmTileArray – TileArray element container class.
Definition: CgmObj.h:995
static long Tile(CCgmBaseObj::TileCompressionType compressionType, long cellColorPrecision, void *parameters, void *colorSpecifiers, long colorSpecifiersSize, CCgmObjects *pOwner, CCgmAttrState *pAttr)
add a tile (any precions per cell) to a Tile Array object (CCgmTileArray)
Definition: MakeCgmObjs.cpp:992
CCgmBaseObj – graphical element container base class.
Definition: CgmObj.h:121
CAppStruct – Application Structure (APS) container class.
Definition: AppStruct.h:23
CCgmText – Text and RestrictedText elements container class.
Definition: CgmObj.h:794
static CCgmBaseObj * Circle(DPoint center, double radius, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Circle object (CCgmCircle) from parameters and current state list
Definition: MakeCgmObjs.cpp:329
static CCgmBaseObj * EllipticalArc(DPoint center, DPoint cdp1, DPoint cdp2, DPoint startVec, DPoint endVec, CCgmBaseObj::ArcClosureType closureType, CCgmObjects *pOwner, CCgmAttrState *pAttr)
construct a Elliptical Arce object (a variant of CCgmEllipse) from parameters and current state list ...
Definition: MakeCgmObjs.cpp:475
CCgmAttrState()
Copyright (c) 2012-2013, Larson Software Technology, Inc.
Definition: MakeCgmObjs.cpp:21
CCgmObjects – CGM Picture container.
Definition: CgmObjects.h:472
Definition: MakeCgmObjs.h:17
static CCgmBaseObj * EmptyFigure(CCgmObjects *pOwner, CCgmAttrState *pAttr)