Class Detector::PartialRebuilder

Nested Relationships

This class is a nested type of Class Detector.

Inheritance Relationships

Base Type

Class Documentation

class PartialRebuilder : public lsst::afw::cameraGeom::Detector::Builder

A helper class that allows the properties of a single detector to be modified in isolation.

Detector::PartialRebuilder can be used without access to the Camera instance the Detector was originally a part of (such as when the Detector was obtained from an Exposure or ExposureRecord). As this always creates a new Detector, the original Camera is never updated. PartialRebuilder prohibits changes to coordinate systems and transforms (including the orientation and pixel size fields that are used to define some transforms), as these cannot be done self-consistently without access to the full Camera.

Public Functions

PartialRebuilder(Detector const &detector)

Construct a PartialRebuilder initialized to the state of the given Detector.

std::shared_ptr<Detector const> finish() const

Construct a new Detector from the current state of the Builder.