BIMHome v1.0.0
BIMHome接口文档说明
LineGroup.h
浏览该文件的文档.
1/************************************************************************
2* @file LineGroup.h
3*
4* @brief LineGroup类
5*
6* @details LineGroup类
7*
8* @author zhaojuan
9*
10* @version 版本号 V0.1
11*
12* @date 2023-2-9
13*
14* @license 北京华科软科技有限公司
15*
16*************************************************************************/
17#ifndef TECHDRAW_APP_LINEGROUP_H
18#define TECHDRAW_APP_LINEGROUP_H
19
20#include <string>
21
22namespace TechDraw
23{
24
25 class TechDrawExport LineGroup
26 {
27 public:
29 LineGroup(std::string groupName);
31 double getWeight(std::string s);
32 void setWeight(std::string s, double weight);
33 std::string getName(void) { return m_name; }
34 void setName(std::string s) { m_name = s; }
35 //static support function: find group defn in file
36 static std::string getRecordFromFile(std::string parmFile, int groupNumber);
37 static double getDefaultWidth(std::string weightName, int groupNumber = -1);
38 static std::string getGroupNamesFromFile(std::string FileName);
39 // void setWeight(const char* s, double weight);
40 void dump(const char* title);
41
42 //static support function: split comma separated string of values into vector of numbers
43 static std::vector<double> split(std::string line);
44
45 //static LineGroup maker
46 static LineGroup* lineGroupFactory(int groupNumber);
47
48 protected:
49 void init(void);
50
51 std::string m_name;
52 double m_thin;
53 double m_graphic;
54 double m_thick;
55 double m_extra;
56 };
57
58}
59#endif //TECHDRAW_APP_LINEGROUP_H
static LineGroup * lineGroupFactory(int groupNumber)
static double getDefaultWidth(std::string weightName, int groupNumber=-1)
double m_thin
Definition LineGroup.h:52
LineGroup(std::string groupName)
void setName(std::string s)
Definition LineGroup.h:34
void setWeight(std::string s, double weight)
double getWeight(std::string s)
double m_graphic
Definition LineGroup.h:53
double m_extra
Definition LineGroup.h:55
double m_thick
Definition LineGroup.h:54
std::string getName(void)
Definition LineGroup.h:33
static std::string getGroupNamesFromFile(std::string FileName)
void dump(const char *title)
std::string m_name
Definition LineGroup.h:51
static std::string getRecordFromFile(std::string parmFile, int groupNumber)
static std::vector< double > split(std::string line)
Definition LineGroup.h:26
Definition ArrowPropEnum.h:26