Celeritas
0.5.0-56+6b053cd
|
Build a translated or transformed object. More...
#include <Transformed.hh>
Public Member Functions | |
Transformed (SPConstObject obj, VariantTransform const &transform) | |
Construct with daughter object and transform. More... | |
SPConstObject const & | daughter () const |
Access the daughter object. | |
VariantTransform const & | transform () const |
Access the transform. | |
std::string_view | label () const final |
Get the user-provided label. | |
NodeId | build (VolumeBuilder &) const final |
Construct a volume from this transformed shape. | |
void | output (JsonPimpl *) const final |
Output to JSON. | |
Public Member Functions inherited from celeritas::orangeinp::ObjectInterface | |
virtual | ~ObjectInterface ()=0 |
Anchored default destructor. | |
Static Public Member Functions | |
static SPConstObject | or_object (SPConstObject obj, VariantTransform const &transform) |
Construct a transformed object if nontrivial, or return the original. | |
Additional Inherited Members | |
Public Types inherited from celeritas::orangeinp::ObjectInterface | |
using | SPConstObject = std::shared_ptr< ObjectInterface const > |
using | VolumeBuilder = detail::VolumeBuilder |
Protected Member Functions inherited from celeritas::orangeinp::ObjectInterface | |
ObjectInterface ()=default | |
CELER_DEFAULT_COPY_MOVE (ObjectInterface) | |
Build a translated or transformed object.
celeritas::orangeinp::Transformed::Transformed | ( | SPConstObject | obj, |
VariantTransform const & | transform | ||
) |
Construct with daughter object and transform.
The input transform should not be "no transform". If you don't know whether it is or not, use the Transformed::or_object
factory function.