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
-
bool Equals(Layer const &in_layer) const
-
bool IsOn() const
-
Layer()
The default constructor creates an empty Layer object.
-
Layer(Component const &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.
- Parameters
in_that – The source Component to copy.
-
Layer(HPS::Component const &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.
- Parameters
in_that – The source Component to copy.
-
Layer(Layer &&in_that)
The move constructor creates an Layer by transferring the underlying impl of the rvalue reference to this Layer thereby avoiding a copy and allocation.
- Parameters
in_that – An rvalue reference to a Layer to take the impl from.
-
Layer(Layer const &in_layer)
The copy constructor creates a new Layer object that contains the same settings as the source Layer.
- Parameters
in_sheet – The source Layer to copy.
-
inline virtual HPS::Type ObjectType() const
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).
- Returns
The declared type of the object in question, which may differ from the true, underlying type.
-
bool operator!=(Layer const &in_layer) const
-
Layer &operator=(Layer &&in_that)
The move assignment operator transfers the underlying impl of the rvalue reference to this Layer thereby avoiding a copy.
-
bool operator==(Layer const &in_layer) const
-
void TurnOff() const
-
void TurnOn() const
-
virtual ~Layer()
Public Static Attributes
-
static const HPS::Type staticType = HPS::Type::DWGLayer
-
bool Equals(Layer const &in_layer) const