Fade2.5D Documentation pages v2.16.7
Delaunay Features
Label.h
Go to the documentation of this file.
1 // Copyright (C) Geom Software e.U, Bernhard Kornberger, Graz/Austria
2 //
3 // This file is part of the Fade2D library. The student license is free
4 // of charge and covers personal non-commercial research. Licensees
5 // holding a commercial license may use this file in accordance with
6 // the Commercial License Agreement.
7 //
8 // This software is provided AS IS with NO WARRANTY OF ANY KIND,
9 // INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
10 // FOR A PARTICULAR PURPOSE.
11 //
12 // Please contact the author if any conditions of this licensing are
13 // not clear to you.
14 //
15 // Author: Bernhard Kornberger, bkorn (at) geom.at
16 // http://www.geom.at
17 
19 #pragma once
20 
21 
22 #include "Point2.h"
23 #include "common.h"
24 #if GEOM_PSEUDO3D==GEOM_TRUE
25  namespace GEOM_FADE25D {
26 #elif GEOM_PSEUDO3D==GEOM_FALSE
27  namespace GEOM_FADE2D {
28 #else
29  #error GEOM_PSEUDO3D is not defined
30 #endif
31 
32 struct LDat; // FWD
33 
43 class CLASS_DECLSPEC Label
44 {
45 
46 public:
58  Label(const Point2& p_,const char* s_,bool bWithMark_=true,int fontSize_=8);
59 
61  Label(const Label& other);
63  Label& operator=(const Label& other);
65  ~Label();
73  const char* getCS() const;
74  // Data
75  LDat* pDat;
76  Point2 p;
77  bool bWithMark;
78  int fontSize;
79 };
80 
81 
82 
83 } // (namespace)
Represents a text label for visualization.
Definition: Label.h:44
~Label()
Destructor.
Label(const Point2 &p_, const char *s_, bool bWithMark_=true, int fontSize_=8)
Constructs a text label at a specified point.
Label(const Label &other)
Copy constructor.
Label & operator=(const Label &other)
Assignment operator.
const char * getCS() const
Gets the text string of the label.
Represents a 2.5D point.
Definition: Point2.h:61