CTL
0.6.1
Computed Tomography Library
|
Public Types | |
enum | { Type = 300 } |
![]() | |
enum | { Type = 0 } |
![]() | |
enum | { Type = -1, UserType = 65536 } |
Public Member Functions | |
int | type () const override |
void | setEnergyRangeRestriction (const Range< float > &range) |
void | setFluxModifier (double modifier) |
void | setFocalSpotSize (const QSizeF &size) |
void | setFocalSpotPosition (const Vector3x1 &position) |
void | prepare (SimpleCTSystem &system) const override |
bool | isApplicableTo (const CTSystem &system) const override |
void | fromVariant (const QVariant &variant) override |
QVariant | toVariant () const override |
![]() | |
~AbstractPrepareStep () override=default | |
![]() | |
virtual | ~SerializationInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< SourceParam > | forEnergyRangeRestriction (const Range< float > &range) |
static std::shared_ptr< SourceParam > | forFluxModifier (double modifier) |
static std::shared_ptr< SourceParam > | forFocalSpotSize (const QSizeF &size) |
static std::shared_ptr< SourceParam > | forFocalSpotPosition (const Vector3x1 &position) |
Protected Attributes | |
QPair< bool, double > | _newFluxModifier = {false, 0.0} |
QPair< bool, QSizeF > | _newFocalSpotSize = {false, QSizeF(0.0, 0.0)} |
QPair< bool, Vector3x1 > | _newSpotPosition = {false, Vector3x1(0.0)} |
QPair< bool, Range< float > > | _energyRangeRestr = {false, { 0.0f, 0.0f } } |
Friends | |
template<class > | |
struct | SerializationHelper::RegisterWithSerializationHelper |
Additional Inherited Members | |
![]() | |
AbstractPrepareStep (const AbstractPrepareStep &)=default | |
AbstractPrepareStep (AbstractPrepareStep &&)=default | |
AbstractPrepareStep & | operator= (const AbstractPrepareStep &)=default |
AbstractPrepareStep & | operator= (AbstractPrepareStep &&)=default |
![]() | |
SerializationInterface ()=default | |
SerializationInterface (const SerializationInterface &)=default | |
SerializationInterface (SerializationInterface &&)=default | |
SerializationInterface & | operator= (const SerializationInterface &)=default |
SerializationInterface & | operator= (SerializationInterface &&)=default |
|
overridevirtual |
Reads all member variables from the QVariant variant.
Reimplemented from CTL::AbstractPrepareStep.
Reimplemented in CTL::prepare::XrayTubeParam, and CTL::prepare::XrayLaserParam.
|
overridevirtual |
Returns true if this prepare step can be applied to system.
Typically, this method will check whether system contains all components that shall be prepared by this instance.
Implements CTL::AbstractPrepareStep.
Reimplemented in CTL::prepare::XrayTubeParam, and CTL::prepare::XrayLaserParam.
|
overridevirtual |
This method performs the actual preparation of the state of system. This usually consists of setting member variables of certain components in system to defined values.
Note that this does not necessarily have to be limited to changes to a single component within the system.
Implements CTL::AbstractPrepareStep.
Reimplemented in CTL::prepare::XrayTubeParam, and CTL::prepare::XrayLaserParam.
|
overridevirtual |
Stores all member variables in a QVariant.
Reimplemented from CTL::AbstractPrepareStep.
Reimplemented in CTL::prepare::XrayTubeParam, and CTL::prepare::XrayLaserParam.
|
inlineoverridevirtual |
Returns the type id of the prepare step.
List of all default types:
Type | Type-ID |
---|---|
AbstractPrepareStep::Type | 0 |
GenericDetectorParam::Type | 101 |
GenericGantryParam::Type | 201 |
CarmGantryParam::Type | 210 |
TubularGantryParam::Type | 220 |
GantryDisplacementParam::Type | 230 |
SourceParam::Type | 300 |
XrayLaserParam::Type | 310 |
XrayTubeParam::Type | 320 |
Reimplemented from CTL::AbstractPrepareStep.
Reimplemented in CTL::prepare::XrayTubeParam, and CTL::prepare::XrayLaserParam.