HPS::DWG::Layer

class HPS.DWG.Layer : public HPS.DWG.Component

The Layer class is a user space object. It allows users to turn layers imported through DWG on or off.

Public Functions

override void Dispose ()
bool Equals (HPS.DWG.Layer in_layer)

Check if the source Layer is equivalent to this Layer.

Return

true if the objects are equivalent, false otherwise.

override bool Equals (Object obj)
override int GetHashCode ()
bool IsOn ()
Layer ()

The default constructor creates an empty Layer object.

Layer (HPS.Component in_that)

This constructor creates a Layer object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG.Layer object. Otherwise the copy will fail and the resulting DWG.Layer will be invalid.

Param in_that

The source Component to copy.

Layer (HPS.DWG.Component in_that)

This constructor creates a Layer object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG.Layer object. Otherwise the copy will fail and the resulting DWG.Layer will be invalid.

Param in_that

The source Component to copy.

Layer (HPS.DWG.Layer in_layer)

The copy constructor creates a new Layer object that contains the same settings as the source Layer.

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.

void TurnOff ()
void TurnOn ()

Public Static Functions

bool operator!= (HPS.DWG.Layer a, HPS.DWG.Layer b)
bool operator== (HPS.DWG.Layer a, HPS.DWG.Layer b)