CGM Objects Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
WebcgmConfig.h
1 
2 #pragma once
3 
4 #include <string>
5 #include <vector>
6 
7 namespace Larson
8 {
9  #define aciNullValue -9999999
10  #define MAX_STD_HATCH_STYLES 6
11  #define MAX_STD_LINE_TYPES 6
12 
14  typedef struct aciHatchStyleDefStruct {
15  long hatchIndex;
16  long styleInd;
17  double cycleLength;
18  long numberOfLines;
19  double dirVectors[2][2];
20  std::vector<long> gapWidths;
21  std::vector<long> lineTypes;
23 
25  typedef struct aciLineEdgeTypeDefStruct {
26  long lineIndex;
27  double repeatLength;
28  std::vector<long> dashLengthList;
30 
32 
35  typedef struct aciConfigStruct {
36  long edgeCap;
37  long edgeDashCap;
38  long edgeJoin;
39  long edgeTypeCont;
40  std::vector<webcgmHatchStyleDefStruct> hatchStyleDef;
41  long lineCap;
42  long lineDashCap;
43  long lineJoin;
44  long lineTypeCont;
45  std::vector<webcgmLineEdgeTypeDefStruct> lineEdgeTypeDef;
46  float mitreLimit;
47  long restrictedTextType;
48  std::wstring defaultFont;
49  std::vector<std::wstring> forceSubstitution;
50  std::vector<std::wstring> cgmFont;
51  std::vector<std::wstring> substitutionList;
52  } webcgmConfig;
53 
54 };
WebCGM 2.1 ACI Line and Edge Definition structure.
Definition: WebcgmConfig.h:25
std::vector< long > lineTypes
defines the width between the lines in the hatch pattern, list of positive integers.
Definition: WebcgmConfig.h:21
struct Larson::aciConfigStruct webcgmConfig
WebCGM 2.1 Application Configurable Items (ACI) file structure.
WebCGM 2.1 ACI Hatch Style Definition structure.
Definition: WebcgmConfig.h:14
std::vector< long > gapWidths
define the direction of the hatch lines, units are NVDC
Definition: WebcgmConfig.h:20
std::vector< long > dashLengthList
defines the length of one complete repetition of the dash pattern in NVDC units
Definition: WebcgmConfig.h:28
long styleInd
1 | 2 | 3 | 4 | 5 | 6
Definition: WebcgmConfig.h:16
WebCGM 2.1 Application Configurable Items (ACI) file structure.
Definition: WebcgmConfig.h:35
double cycleLength
parallel | crosshatch
Definition: WebcgmConfig.h:17
double repeatLength
1 | 2 | 3 | 4 | 5
Definition: WebcgmConfig.h:27
struct Larson::aciHatchStyleDefStruct webcgmHatchStyleDefStruct
WebCGM 2.1 ACI Hatch Style Definition structure.
struct Larson::aciLineEdgeTypeDefStruct webcgmLineEdgeTypeDefStruct
WebCGM 2.1 ACI Line and Edge Definition structure.