| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
DL_Attributes Class Reference

`#include <dl_attributes.h>`

List of all members.

## Public Member Functions

| DL_Attributes ()
| DL_Attributes (const string &layer, int color, int width, const string &lineType)
void | setLayer (const string &layer)
string | getLayer () const
void | setColor (int color)
int | getColor () const
void | setWidth (int width)
int | getWidth () const
void | setLineType (const string &lineType)
string | getLineType () const
DL_Attributes | operator= (const DL_Attributes &attrib)

## Detailed Description

Storing and passing around attributes. Attributes are the layer name, color, width and line type.

Author:
  Andrew Mustun

## Constructor & Destructor Documentation

DL_Attributes::DL_Attributes | ( |  | ) | `[inline]`

Default constructor.

DL_Attributes::DL_Attributes | ( | const string & | layer,
|  | int | color,
|  | int | width,
|  | const string & | lineType
| ) |  | `[inline]`

Constructor for DXF attributes.

Parameters:

  layer | Layer name for this entity or NULL for no layer (every entity should be on a named layer!).
  color | Color number (0..256). 0 = BYBLOCK, 256 = BYLAYER.
  width | Line thickness. Defaults to zero. -1 = BYLAYER, -2 = BYBLOCK, -3 = default width
  lineType | Line type name or "BYLAYER" or "BYBLOCK". Defaults to "BYLAYER"

## Member Function Documentation

int DL_Attributes::getColor | ( |  | ) | const`[inline]`

Returns:
  Color.

See also:
  DL_Codes, dxfColors

string DL_Attributes::getLayer | ( |  | ) | const`[inline]`

Returns:
  Layer name.

string DL_Attributes::getLineType | ( |  | ) | const`[inline]`

Returns:
  Line type.

int DL_Attributes::getWidth | ( |  | ) | const`[inline]`

Returns:
  Width.

DL_Attributes DL_Attributes::operator= | ( | const DL_Attributes & | attrib | ) | `[inline]`

Copies attributes (deep copies) from another attribute object.

void DL_Attributes::setColor | ( | int | color | ) | `[inline]`

Sets the color.

See also:
  DL_Codes, dxfColors

void DL_Attributes::setLayer | ( | const string & | layer | ) | `[inline]`

Sets the layer. If the given pointer points to NULL, the new layer name will be an empty but valid string.

void DL_Attributes::setLineType | ( | const string & | lineType | ) | `[inline]`

Sets the line type. This can be any string and is not checked to be a valid line type.

void DL_Attributes::setWidth | ( | int | width | ) | `[inline]`

Sets the width.

The documentation for this class was generated from the following file:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/dxflib/dl_attributes.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines