Skip to content

Inscoper::NBO::PockelsCell

Represents the XML element PockelsCell. More...

#include <PockelsCell.h>

Inherits from NBOBaseClass

Public Functions

Name
PockelsCell()
~PockelsCell()
std::string getTypeName() const override
Returns the class type name.
std::string getXMLName() const override
Returns the XML element name corresponding to this class.
ENBOType getNBOType() const override
Returns the NBO Type corresponding to this class.
std::vector< NBOBaseClassPtr > getChildren() const override
Returns a list of all classes derived from this class.
std::vector< NBOBaseClassPtr > getSubElements() const override
Returns a list of all child elements contained in this class.
void fromJsonFile(const std::string & path, bool validate =true)
Populates this object from a JSON file.
void fromJsonString(const std::string & json_string, bool validate =true)
Populates this object from a JSON string.
void fromXmlFile(const std::string & path, bool validate =true)
Populates this object from a XML file.
void fromXmlString(const std::string & xml_string, bool validate =true)
Populates this object from a XML string.
void toXmlFile(const std::string & filename, bool validate =true) const
Serializes this object to an XML file.
std::string toXmlString(bool validate =true) const
Serializes this object to an XML string.
void setHalfWaveVoltage(const float & value, bool validate =true)
Sets the value of the HalfWaveVoltage attribute.
float getHalfWaveVoltage() const
Returns the value of the HalfWaveVoltage attribute.
void resetHalfWaveVoltage()
Resets the HalfWaveVoltage attribute to an unset state.
bool hasHalfWaveVoltage() const
Checks whether the HalfWaveVoltage attribute is present.
void setHalfWaveVoltageUnit(const Inscoper::NBO::UnitsElectricPotential_TypePtr & value, bool validate =true)
Sets the value of the HalfWaveVoltageUnit attribute.
UnitsElectricPotential_TypePtr getHalfWaveVoltageUnit() const
Returns the value of the HalfWaveVoltageUnit attribute.
void resetHalfWaveVoltageUnit()
Resets the HalfWaveVoltageUnit attribute to an unset state.
bool hasHalfWaveVoltageUnit() const
Checks whether the optional HalfWaveVoltageUnit attribute is present.
void setMaterial(const Inscoper::NBO::PockelsCellMaterial_TypePtr & value, bool validate =true)
Sets the value of the Material attribute.
PockelsCellMaterial_TypePtr getMaterial() const
Returns the value of the Material attribute.
void resetMaterial()
Resets the Material attribute to an unset state.
bool hasMaterial() const
Checks whether the optional Material attribute is present.
std::shared_ptr< PockelsCell > fromBase(NBOBaseClassPtr base)
Cast a NBOBaseClass to a PockelsCell.

Detailed Description

class Inscoper::NBO::PockelsCell;

Represents the XML element PockelsCell.

Pockels cells are the basic components of electro-optic modulators. A Pockels cell is a device consisting of an electro-optic crystal (with some electrodes attached to it) through which a light beam can propagate. The phase delay in the crystal (→ Pockels effect) can be modulated by applying a variable electric voltage. The Pockels cell thus acts as a voltage-controlled waveplate.

Public Functions Documentation

function PockelsCell

function ~PockelsCell

function getTypeName

function getXMLName

function getNBOType

function getChildren

function getSubElements

function fromJsonFile

function fromJsonString

function fromXmlFile

function fromXmlString

function toXmlFile

function toXmlString

function setHalfWaveVoltage

function getHalfWaveVoltage

function resetHalfWaveVoltage

function hasHalfWaveVoltage

function setHalfWaveVoltageUnit

function getHalfWaveVoltageUnit

function resetHalfWaveVoltageUnit

function hasHalfWaveVoltageUnit

function setMaterial

function getMaterial

function resetMaterial

function hasMaterial

function fromBase