RayZaler 0.1
The free opto-mechanical simulation framework
RZ::Detector Class Reference
Inheritance diagram for RZ::Detector:
Collaboration diagram for RZ::Detector:

Public Member Functions

 Detector (ElementFactory *, std::string const &, ReferenceFrame *, Element *parent=nullptr)
 
virtual void nativeMaterialOpenGL (std::string const &) override
 
virtual void renderOpenGL () override
 
void clear ()
 
virtual bool savePNG (std::string const &) const
 
virtual bool saveRawData (std::string const &) const
 
virtual bool saveAmplitude (std::string const &) const
 
unsigned int cols () const
 
unsigned int rows () const
 
Real pxWidth () const
 
Real pxHeight () const
 
Real width () const
 
Real height () const
 
unsigned int stride () const
 
const uint32_t * data () const
 
const Complex * amplitude () const
 
uint32_t maxCounts () const
 
Real maxEnergy () const
 
- Public Member Functions inherited from RZ::OpticalElement
bool recordHits () const
 
virtual OpticalPath opticalPath (std::string const &name="") const
 
OpticalPath plug (OpticalElement *, std::string const &name="") const
 
const std::list< const OpticalSurface * > & opticalSurfaces () const
 
std::list< OpticalSurface * > opticalSurfaces ()
 
std::list< std::string > surfaceNames () const
 
OpticalSurfacelookupSurface (std::string const &)
 
const std::vector< Real > & hits (std::string const &name="") const
 
const std::vector< Real > & directions (std::string const &name="") const
 
virtual void setRecordHits (bool)
 
virtual void clearHits ()
 
- Public Member Functions inherited from RZ::Element
Real red () const
 
Real green () const
 
Real blue () const
 
ElementFactoryfactory () const
 
GenericCompositeModelparentModel ()
 
void setParentModel (GenericCompositeModel *model)
 
std::string const & name () const
 
bool hasProperty (std::string const &prop) const
 
PropertyValueType queryPropertyType (std::string const &prop) const
 
bool propertyIsHidden (std::string const &prop) const
 
ReferenceFrameparentFrame () const
 
bool visible () const
 
void refreshFrames ()
 
std::set< std::string > ports () const
 
std::set< std::string > properties () const
 
std::vector< std::string > sortedProperties () const
 
ReferenceFramegetPortFrame (std::string const &) const
 
Elementplug (std::string const &port, std::string const &type, std::string const &name="")
 
template<class T >
T * plug (std::string const &port, std::string const &type, std::string const &name="")
 
bool set (std::string const &, PropertyValue const &)
 
void setDefaults ()
 
PropertyValue get (std::string const &) const
 
template<class T >
get (std::string const &name) const
 
void setSelected (bool)
 
void setVisible (bool)
 
void boundingBox (Vec3 &p1, Vec3 &p2) const
 
virtual void enterOpenGL ()
 
virtual void nativeMaterialOpenGL (std::string const &role)
 
virtual void renderOpenGL ()
 
void calcBoundingBoxOpenGL ()
 
void renderBoundingBoxOpenGL ()
 
virtual OMModelnestedModel () const
 
virtual GenericCompositeModelnestedCompositeModel () const
 
ElementlookupElement (std::string const &name) const
 
OpticalElementlookupOpticalElement (std::string const &name) const
 
DetectorlookupDetector (std::string const &name) const
 
const OpticalPathlookupOpticalPath (std::string const &name) const
 

Protected Member Functions

virtual bool propertyChanged (std::string const &, PropertyValue const &) override
 
- Protected Member Functions inherited from RZ::OpticalElement
void pushOpticalSurface (std::string, ReferenceFrame *, const MediumBoundary *)
 
void defineOpticalSurface (std::string, ReferenceFrame *, const MediumBoundary *)
 
 OpticalElement (ElementFactory *, std::string const &, ReferenceFrame *, Element *parent=nullptr)
 
- Protected Member Functions inherited from RZ::Element
void material (std::string const &role)
 
void refreshProperties ()
 
void registerProperty (std::string const &, PropertyValue const &, std::string const &)
 
ReferenceFrameregisterPort (std::string const &, ReferenceFrame *)
 
bool addPort (std::string const &, ReferenceFrame *)
 
template<class T >
T * registerPort (std::string const &name, T *frame)
 
virtual bool propertyChanged (std::string const &, PropertyValue const &)
 
void setBoundingBox (Vec3 const &p1, Vec3 const &p2)
 
void updatePropertyValue (std::string const &, PropertyValue const &)
 
 Element (ElementFactory *, std::string const &, ReferenceFrame *, Element *parent=nullptr)
 

Additional Inherited Members

- Static Public Member Functions inherited from RZ::OpticalElement
static OpticalElementfromElement (Element *element)
 

Member Function Documentation

◆ nativeMaterialOpenGL()

void Detector::nativeMaterialOpenGL ( std::string const &  name)
overridevirtual

Reimplemented from RZ::Element.

◆ propertyChanged()

bool Detector::propertyChanged ( std::string const &  name,
PropertyValue const &  value 
)
overrideprotectedvirtual

Reimplemented from RZ::Element.

◆ renderOpenGL()

void Detector::renderOpenGL ( )
overridevirtual

Reimplemented from RZ::Element.


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