Celeritas  0.5.0-56+6b053cd
Public Member Functions | Static Public Member Functions | List of all members
celeritas::orangeinp::Transformed Class Referencefinal

Build a translated or transformed object. More...

#include <Transformed.hh>

Inheritance diagram for celeritas::orangeinp::Transformed:
Inheritance graph
[legend]

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)
 

Detailed Description

Build a translated or transformed object.

Constructor & Destructor Documentation

◆ Transformed()

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.


The documentation for this class was generated from the following files: