Skip to content

Class AIAC::CutPlaneVisualizer

ClassList > AIAC > CutPlaneVisualizer

Inherits the following classes: AIAC::FeedbackVisualizer

Inherited by the following classes: AIAC::ChainSawCutPlaneVisualizer, AIAC::CircularSawCutPlaneVisualizer

Public Functions

Type Name
virtual void Activate () override
CutPlaneVisualizer ()
virtual void Deactivate () override
std::vector< glm::vec3 > Update (glm::vec3 faceNorm, glm::vec3 facePt)
Update the intersection polyline and face, and return the intersection point.

Public Functions inherited from AIAC::FeedbackVisualizer

See AIAC::FeedbackVisualizer

Type Name
virtual void Activate ()
virtual void Deactivate ()
FeedbackVisualizer () = default
~FeedbackVisualizer () = default

Public Static Functions inherited from AIAC::FeedbackVisualizer

See AIAC::FeedbackVisualizer

Type Name
std::string toString (double val)
Convert a double value to the real world scale in mm and return a string with 2 digits. If the value in mm is > 99, return "99".

Protected Attributes

Type Name
std::shared_ptr< GOLine > m_LongestIntersectSegmentA1
the intersection line of the blade indicating the thickness away from the camera
std::shared_ptr< GOLine > m_LongestIntersectSegmentA2
the intersection line of the blade indicating the thickness towards the camera
std::shared_ptr< GOLine > m_LongestIntersectSegmentAppCenterA
<
std::shared_ptr< GOLine > m_LongestIntersectSegmentAppCenterB
the intersection line of the blade indicating the thickness towards the camera
std::shared_ptr< GOLine > m_LongestIntersectSegmentB1
the intersection line of the blade indicating the thickness away from the camera
std::shared_ptr< GOLine > m_LongestIntersectSegmentB2

Protected Attributes inherited from AIAC::FeedbackVisualizer

See AIAC::FeedbackVisualizer

Type Name
std::vector< std::shared_ptr< GOPrimitive > > m_AllPrimitives

Public Functions Documentation

function Activate

virtual void AIAC::CutPlaneVisualizer::Activate () override

Implements AIAC::FeedbackVisualizer::Activate


function CutPlaneVisualizer

AIAC::CutPlaneVisualizer::CutPlaneVisualizer () 

function Deactivate

virtual void AIAC::CutPlaneVisualizer::Deactivate () override

Implements AIAC::FeedbackVisualizer::Deactivate


function Update

Update the intersection polyline and face, and return the intersection point.

std::vector< glm::vec3 > AIAC::CutPlaneVisualizer::Update (
    glm::vec3 faceNorm,
    glm::vec3 facePt
) 

Parameters:

  • faceNorm the normal of the face
  • facePt the point on the face

Returns:

std::vector<glm::vec3> the intersection point of the bbox and the face


Protected Attributes Documentation

variable m_LongestIntersectSegmentA1

the intersection line of the blade indicating the thickness away from the camera

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentA1;


variable m_LongestIntersectSegmentA2

the intersection line of the blade indicating the thickness towards the camera

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentA2;


variable m_LongestIntersectSegmentAppCenterA

<

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentAppCenterA;

the intersection of the top plane of the blade from the closest side to the center of the blade

the intersection of the top plane of the blade from the second closest side to the center of the blade


variable m_LongestIntersectSegmentAppCenterB

the intersection line of the blade indicating the thickness towards the camera

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentAppCenterB;


variable m_LongestIntersectSegmentB1

the intersection line of the blade indicating the thickness away from the camera

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentB1;


variable m_LongestIntersectSegmentB2

std::shared_ptr<GOLine> AIAC::CutPlaneVisualizer::m_LongestIntersectSegmentB2;


The documentation for this class was generated from the following file src/AIAC/Feedback/CutPlaneVisualizer.h