logo

Macro Programming

logo
Contents

layer Class Reference

Layer display setup class. More...

#include <layer.h>

List of all members.


Public Member Functions

void disable ()
 visibility of a layer
void enable ()
 layer enable
int getStyle ()
 style of a layer
void set3dView (int level, int thickness)
 setup 3D view
void setColor (int red, int green, int blue)
 color of a layer
void setStyle (int style)
 set style of a layer

Public Attributes

string name
 layerName
bool visible
 visibility of a layer

Detailed Description

Layer display setup class.

This class is the setup for the display of one layer. Each layer can accessed via the class layers.

layers::num[5].name="Layer Number 5";
The class layer can not be used as type.
See also:
class layers


Member Function Documentation

void layer::disable (  ) 

visibility of a layer

The layer will be disabled and not be displayed in the menus/toolsbars.

void layer::enable (  ) 

layer enable

The layer will be enabled and be displayed in the menus/toolsbars.

int layer::getStyle (  ) 

style of a layer

The style/filling of a layer can read via this method.

Returns:
style see above for details on available styles

void layer::set3dView ( int  level,
int  thickness 
)

setup 3D view

The heightlevel and the thickness of the layer ist set.

void layer::setColor ( int  red,
int  green,
int  blue 
)

color of a layer

The color of a layer can modified via method.

Parameters:
red the red component
green the green component
blue the blue component

void layer::setStyle ( int  style  ) 

set style of a layer

The style/filling of a layer can modified via this method.

Parameters:
style 0: NoBrush
1: dense 7%
2: dense 13%
3: dense 19%
4: dense 25%
5: dense 31%
6: dense 37%
7: dense 44%
8: dense 50%
9: solid
10: horizontal small
11: 27° small
12: 45° small
13: 72° small
14: vertical small
15: 72° back small
16: 45° back small
17: 27° back small
18: cross small
19: diagcross small
20: horizontal
21: 27°
22: 45°
23: 72°
24: vertical
25: 72° back
26: 45° back
27: 27° back
28: cross
29: diagcross


Member Data Documentation

string layer::name

layerName

The name of a layer is hold here.

bool layer::visible

visibility of a layer

The visibility of a layer can modified via this value.


Contents
SourceForge.net Logo