#include <rtkQuadricShape.h>
Defines a 3D quadric shape.
A quadric shape has the equation Ax^2 + By^2 + Cz^2 + Dxy+ Exz + Fyz + Gx + Hy + Iz + J = 0 It is assumed to be convex (which is not always true).
Definition at line 45 of file rtkQuadricShape.h.
Inheritance diagram for rtk::QuadricShape:
Collaboration diagram for rtk::QuadricShape:Public Member Functions | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual ScalarType | GetA () const |
| virtual ScalarType | GetB () const |
| virtual ScalarType | GetC () const |
| virtual ScalarType | GetD () const |
| virtual ScalarType | GetE () const |
| virtual ScalarType | GetF () const |
| virtual ScalarType | GetG () const |
| virtual ScalarType | GetH () const |
| virtual ScalarType | GetI () const |
| virtual ScalarType | GetJ () const |
| virtual const char * | GetNameOfClass () const |
| itk::LightObject::Pointer | InternalClone () const override |
| bool | IsInside (const PointType &point) const override |
| bool | IsInsideQuadric (const PointType &point) const |
| bool | IsIntersectedByRay (const PointType &rayOrigin, const VectorType &rayDirection, ScalarType &infDist, ScalarType &supDist) const override |
| void | Rescale (const VectorType &r) override |
| void | Rotate (const RotationMatrixType &r) override |
| virtual void | SetA (ScalarType _arg) |
| virtual void | SetB (ScalarType _arg) |
| virtual void | SetC (ScalarType _arg) |
| virtual void | SetD (ScalarType _arg) |
| virtual void | SetE (ScalarType _arg) |
| void | SetEllipsoid (const PointType ¢er, const VectorType &axis, const ScalarType &yangle=0) |
| virtual void | SetF (ScalarType _arg) |
| virtual void | SetG (ScalarType _arg) |
| virtual void | SetH (ScalarType _arg) |
| virtual void | SetI (ScalarType _arg) |
| virtual void | SetJ (ScalarType _arg) |
| void | Translate (const VectorType &t) override |
Public Member Functions inherited from rtk::ConvexShape | |
| void | AddClipPlane (const VectorType &dir, const ScalarType &pos) |
| virtual ScalarType | GetDensity () |
| virtual ScalarType | GetDensity () const |
| virtual const std::vector< VectorType > & | GetPlaneDirections () const |
| virtual const std::vector< ScalarType > & | GetPlanePositions () const |
| void | SetClipPlanes (const std::vector< VectorType > &dir, const std::vector< ScalarType > &pos) |
| virtual void | SetDensity (ScalarType _arg) |
Public Member Functions inherited from itk::DataObject | |
| virtual void | CopyInformation (const DataObject *) |
| virtual void | DataHasBeenGenerated () |
| void | DisconnectPipeline () |
| bool | GetDataReleased () const |
| virtual const bool & | GetReleaseDataFlag () const |
| SmartPointer< ProcessObject > | GetSource () const |
| DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
| const DataObjectIdentifierType & | GetSourceOutputName () const |
| virtual ModifiedTimeType | GetUpdateMTime () const |
| virtual void | Graft (const DataObject *) |
| virtual void | Initialize () |
| virtual void | PrepareForNewData () |
| virtual void | PropagateRequestedRegion () |
| void | ReleaseData () |
| virtual void | ReleaseDataFlagOff () |
| virtual void | ReleaseDataFlagOn () |
| virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
| virtual void | ResetPipeline () |
| void | SetReleaseDataFlag (bool flag) |
| virtual void | SetRequestedRegion (const DataObject *) |
| virtual void | SetRequestedRegionToLargestPossibleRegion () |
| bool | ShouldIReleaseData () const |
| virtual void | Update () |
| virtual void | UpdateOutputData () |
| virtual void | UpdateOutputInformation () |
| void | UpdateSource () const |
| virtual bool | VerifyRequestedRegion () |
| void | SetPipelineMTime (ModifiedTimeType time) |
| virtual const ModifiedTimeType & | GetPipelineMTime () const |
| virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
| virtual const RealTimeStamp & | GetRealTimeStamp () const |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from rtk::ConvexShape | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::DataObject | |
| static bool | GetGlobalReleaseDataFlag () |
| static void | GlobalReleaseDataFlagOff () |
| static void | GlobalReleaseDataFlagOn () |
| static Pointer | New () |
| static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Private Member Functions | |
| QuadricShape () | |
Private Attributes | |
| ScalarType | m_A { 0. } |
| ScalarType | m_B { 0. } |
| ScalarType | m_C { 0. } |
| ScalarType | m_D { 0. } |
| ScalarType | m_E { 0. } |
| ScalarType | m_F { 0. } |
| ScalarType | m_G { 0. } |
| ScalarType | m_H { 0. } |
| ScalarType | m_I { 0. } |
| ScalarType | m_J { 0. } |
Additional Inherited Members | |
Static Public Attributes inherited from rtk::ConvexShape | |
| static constexpr unsigned int | Dimension = 3 |
Protected Member Functions inherited from rtk::ConvexShape | |
| bool | ApplyClipPlanes (const PointType &point) const |
| bool | ApplyClipPlanes (const PointType &rayOrigin, const VectorType &rayDirection, ScalarType &infDist, ScalarType &supDist) const |
| ConvexShape () | |
Protected Member Functions inherited from itk::DataObject | |
| DataObject () | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| virtual void | PropagateResetPipeline () |
| ~DataObject () override | |
Protected Member Functions inherited from itk::Object | |
| Object () | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| ~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using rtk::QuadricShape::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 52 of file rtkQuadricShape.h.
Definition at line 51 of file rtkQuadricShape.h.
Definition at line 56 of file rtkQuadricShape.h.
Convenient type alias.
Definition at line 55 of file rtkQuadricShape.h.
| using rtk::QuadricShape::Self = QuadricShape |
Standard class type alias.
Definition at line 49 of file rtkQuadricShape.h.
Definition at line 50 of file rtkQuadricShape.h.
Definition at line 57 of file rtkQuadricShape.h.
|
private |
Referenced by GetNameOfClass().
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from rtk::ConvexShape.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from rtk::ConvexShape.
References QuadricShape().
|
overridevirtual |
Actual implementation of the clone method. This method should be reimplemented in subclasses to clone the extra required parameters.
Reimplemented from rtk::ConvexShape.
|
overridevirtual |
See rtk::ConvexShape::IsInside.
Reimplemented from rtk::ConvexShape.
| bool rtk::QuadricShape::IsInsideQuadric | ( | const PointType & | point | ) | const |
Idem as IsInside without the application of clip planes.
|
overridevirtual |
See rtk::ConvexShape::IsIntersectedByRay for the goal and https://education.siggraph.org/static/HyperGraph/raytrace/rtinter4.htm for the computation.
Reimplemented from rtk::ConvexShape.
|
static |
Method for creation through the object factory.
|
overridevirtual |
Rescale object along each direction by a 3D vector.
Reimplemented from rtk::ConvexShape.
|
overridevirtual |
Rotate object by a given 3D matrix.
Reimplemented from rtk::ConvexShape.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void rtk::QuadricShape::SetEllipsoid | ( | const PointType & | center, |
| const VectorType & | axis, | ||
| const ScalarType & | yangle = 0 ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Translate object by a given 3D vector.
Reimplemented from rtk::ConvexShape.
|
private |
Definition at line 124 of file rtkQuadricShape.h.
|
private |
Definition at line 125 of file rtkQuadricShape.h.
|
private |
Definition at line 126 of file rtkQuadricShape.h.
|
private |
Definition at line 127 of file rtkQuadricShape.h.
|
private |
Definition at line 128 of file rtkQuadricShape.h.
|
private |
Definition at line 129 of file rtkQuadricShape.h.
|
private |
Definition at line 130 of file rtkQuadricShape.h.
|
private |
Definition at line 131 of file rtkQuadricShape.h.
|
private |
Definition at line 132 of file rtkQuadricShape.h.
|
private |
Definition at line 133 of file rtkQuadricShape.h.