open_iA 2024.9
Loading...
Searching...
No Matches
iASlicerProfileHandles Class Reference

Shows handles for start and end of a profile line on the given (slicer) renderer. More...

#include <iASlicerProfileHandles.h>

Collaboration diagram for iASlicerProfileHandles:
[legend]

Public Member Functions

 iASlicerProfileHandles ()
 
void addToRenderer (vtkRenderer *ren)
 
void findSelectedPointIdx (double x, double y)
 
int pointIdx () const
 
double const * position (int pointIdx)
 
void setPointScaling (double scaling)
 
void setup (int pointInd, double const *pos3d, double const *pos2d, vtkImageData *imgData)
 
void setVisibility (bool isVisible)
 

Static Public Attributes

static const int PointRadius = 5
 
static const int ZCoord = 0
 

Protected Attributes

std::array< iAvtkSourcePoly< vtkLineSource >, 2 > m_hLine
 
std::array< iAvtkSourcePoly< vtkDiskSource >, 2 > m_points
 data for the disk visualizations of start and end point
 
double m_positions [2][3]
 
iAvtkSourcePoly< vtkLineSource > m_profLine
 profile line
 
int m_profPntInd
 currently selected point of profile
 
double m_radius
 radius, taking into account image spacing
 
std::array< iAvtkSourcePoly< vtkLineSource >, 2 > m_vLine
 horizontal and vertical lines
 
iALinePointers m_zeroLine
 zero line
 

Detailed Description

Shows handles for start and end of a profile line on the given (slicer) renderer.

Constructor & Destructor Documentation

◆ iASlicerProfileHandles()

iASlicerProfileHandles::iASlicerProfileHandles ( )

Member Function Documentation

◆ addToRenderer()

void iASlicerProfileHandles::addToRenderer ( vtkRenderer * ren)

◆ findSelectedPointIdx()

void iASlicerProfileHandles::findSelectedPointIdx ( double x,
double y )

◆ pointIdx()

int iASlicerProfileHandles::pointIdx ( ) const

◆ position()

double const * iASlicerProfileHandles::position ( int pointIdx)

◆ setPointScaling()

void iASlicerProfileHandles::setPointScaling ( double scaling)

◆ setup()

void iASlicerProfileHandles::setup ( int pointInd,
double const * pos3d,
double const * pos2d,
vtkImageData * imgData )

◆ setVisibility()

void iASlicerProfileHandles::setVisibility ( bool isVisible)

Member Data Documentation

◆ m_hLine

std::array<iAvtkSourcePoly<vtkLineSource>, 2> iASlicerProfileHandles::m_hLine
protected

◆ m_points

std::array<iAvtkSourcePoly<vtkDiskSource>, 2> iASlicerProfileHandles::m_points
protected

data for the disk visualizations of start and end point

◆ m_positions

double iASlicerProfileHandles::m_positions[2][3]
protected

◆ m_profLine

iAvtkSourcePoly<vtkLineSource> iASlicerProfileHandles::m_profLine
protected

profile line

◆ m_profPntInd

int iASlicerProfileHandles::m_profPntInd
protected

currently selected point of profile

◆ m_radius

double iASlicerProfileHandles::m_radius
protected

radius, taking into account image spacing

◆ m_vLine

std::array<iAvtkSourcePoly<vtkLineSource>, 2> iASlicerProfileHandles::m_vLine
protected

horizontal and vertical lines

◆ m_zeroLine

iALinePointers iASlicerProfileHandles::m_zeroLine
protected

zero line

◆ PointRadius

const int iASlicerProfileHandles::PointRadius = 5
static

◆ ZCoord

const int iASlicerProfileHandles::ZCoord = 0
static

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