Capture

class HPS::Capture : public HPS::Component

The Capture class is a smart pointer. It represents a capture, i.e., a collection of visibility settings, material settings, transformation settings, and camera, for a CADModel.

Subclassed by HPS::DWG::Layout, HPS::Exchange::Capture

Public Functions

View Activate()

Creates a new View object corresponding to this Capture. The View object that is returned will have the corresponding visibility settings, material settings, transformation settings, and camera from this Capture set on it.

Returns

A newly created View object corresponding to this Capture.

Capture()

The default constructor creates an uninitialized Capture object. The Type() function will return Type::None.

Capture(Capture &&in_that)

The move constructor creates a Capture by transferring the underlying object of the rvalue reference to this Capture.

Parameters

in_that – An rvalue reference to a Capture to take the underlying object from.

Capture(Capture const &in_that)

The copy constructor creates a Capture object that shares the underlying smart-pointer of the source Capture.

Parameters

in_that – The source Capture to copy.

Capture(Component const &in_that)

This constructor creates a Capture 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 a Capture object. Otherwise the copy will fail and the resulting Capture will be invalid.

Parameters

in_that – The source Component 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.

Capture &operator=(Capture &&in_that)

The move assignment operator transfers the underlying object of the rvalue reference to this Capture.

Parameters

in_that – An rvalue reference to a Capture to take the underlying object from.

Returns

A reference to this Capture.

virtual ~Capture()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::Capture