14 #include "generalmod.h" 28 enum VPos { Top, Bottom, VCenter };
31 Alignment(
HPos h=Left, VPos v=Top );
34 HPos hPos()
const {
return hor_; }
35 VPos
vPos()
const {
return ver_; }
38 void set(
HPos h, VPos v ) { hor_ = h; ver_ = v; }
39 void set(
HPos h ) { hor_ = h; }
40 void set( VPos v ) { ver_ = v; }
47 static VPos opposite( VPos p );
56 #define mAlignment(h,v) Alignment(Alignment::h,Alignment::v) 57 #define mDeclAlignment(nm,h,v) Alignment nm( Alignment::h, Alignment::v ) 68 MarkerStyle2D(
Type tp=Square,
int sz=1,
72 bool operator==(const MarkerStyle2D& a) const;
73 const MarkerStyle2D& operator=(const MarkerStyle2D& a);
80 bool isVisible() const;
83 void fromString(const
char*);
104 bool isVisible() const;
107 void fromString(const
char*);
109 bool operator==(const MarkerStyle3D& b) const;
110 bool operator!=(const MarkerStyle3D& b) const;
111 static MarkerStyle2D::
Type getMS2DType(MarkerStyle3D::
Type);
122 enum Type {
None, Solid, Dash, Dot, DashDot, DashDotDot };
129 bool operator ==( const LineStyle& ls ) const;
130 bool operator !=( const LineStyle& ls ) const;
136 bool isVisible() const;
139 void fromString(const
char*);
151 : type_(typ), opt_(opt) {}
175 void setBoldNess(
int b);
188 enum Type { HeadOnly, TwoSided, TailOnly, HeadNorTail };
190 ArrowStyle(
int boldness=1, Type t=HeadOnly );
191 void setBoldNess(
int b );
193 bool hasHead()
const;
194 bool hasTail()
const;
213 , linetype_(Normal) {}
229 return pos_ == from.
pos_ 234 {
return linetype_ == Normal; }
#define mExpClass(module)
Definition: commondefs.h:160
PlotAnnotation()
Definition: draw.h:210
Type type_
Definition: draw.h:196
void setMediumDotted()
Definition: draw.h:161
OD::LineStyle linestyle_
contains the color
Definition: draw.h:197
Definition: vishorizonsectiondef.h:31
Definition: uistring.h:89
LineType
Definition: draw.h:208
PlotAnnotation & operator=(const PlotAnnotation &from)
Definition: draw.h:219
Set of BufferString objects.
Definition: bufstringset.h:28
VPos vPos() const
Definition: draw.h:35
FixedString Target()
Definition: keystrs.h:130
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
FixedString None()
Definition: keystrs.h:90
bool operator==(const PlotAnnotation &from) const
Definition: draw.h:227
float pos_
Definition: draw.h:215
FixedString Cube()
Definition: keystrs.h:51
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
void setFullFill()
Definition: draw.h:160
HPos
Definition: draw.h:26
Position.
Definition: commontypes.h:42
ArrowHeadStyle headstyle_
Definition: draw.h:198
LineType linetype_
Definition: draw.h:217
Type
Definition: draw.h:92
FillPattern(int typ=0, int opt=0)
Definition: draw.h:150
mDeclareEnumUtils(HPos) enum VPos
Definition: draw.h:27
bool isNormal() const
Definition: draw.h:233
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
void setNoFill()
Definition: draw.h:159
Type
Definition: draw.h:64
ArrowHeadStyle tailstyle_
Definition: draw.h:199
OpendTect.
Definition: commontypes.h:29
uiString txt_
Definition: draw.h:216
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Type type_
Definition: draw.h:178
int sz_
Definition: draw.h:177
HandedNess
Definition: draw.h:171
HPos hor_
Definition: draw.h:51
#define mClass(module)
Definition: commondefs.h:164
VPos ver_
Definition: draw.h:52
int type_
Definition: draw.h:156
Export_Basic const char * toString(ViewStyle)
int opt_
Definition: draw.h:157
HandedNess handedness_
Definition: draw.h:179
Definition: vishorizonsectiondef.h:31