plastimatch
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Rtss Class Reference

The Rtss class represents a set of segmentations in polyline format, analogous to the DICOM-RT RTSTRUCT object. More...

#include <rtss.h>

Public Member Functions

 SMART_POINTER_SUPPORT (Rtss)
 
 Rtss ()
 
 ~Rtss ()
 
void init (void)
 
void clear (void)
 
Rtss_roiadd_structure (const std::string &structure_name, const std::string &color, int structure_id, int bit=-1)
 
void delete_structure (int index)
 
Rtss_roifind_structure_by_id (int structure_id)
 
std::string get_structure_name (size_t index)
 
void set_structure_name (size_t index, const std::string &name)
 
void debug (void)
 
void adjust_structure_names (void)
 
void prune_empty (void)
 
void find_rasterization_geometry (float offset[3], float spacing[3], plm_long dims[3], Direction_cosines &dc)
 
void find_rasterization_geometry (Plm_image_header *pih)
 
std::string find_unused_structure_name (void)
 
void fix_polyline_slice_numbers (void)
 
void apply_slice_list (const Rt_study_metadata::Pointer &rsm)
 Copy slice UIDs from referenced image into the Rtss object.
 
void apply_slice_list (const Slice_list *slice_list)
 Copy slice UIDs from referenced image into the Rtss object.
 
void free_all_polylines (void)
 
void keyholize (void)
 
void set_rasterization_geometry (void)
 
void set_geometry (const Plm_image_header *pih)
 
void set_geometry (const Plm_image::Pointer &pli)
 

Static Public Member Functions

static Rtssclone_empty (Rtss *cxt_out, Rtss *cxt_in)
 

Public Attributes

int have_geometry
 
plm_long m_dim [3]
 
float m_spacing [3]
 
float m_offset [3]
 
Direction_cosines m_dc
 
plm_long rast_dim [3]
 
float rast_spacing [3]
 
float rast_offset [3]
 
Direction_cosines rast_dc
 
size_t num_structures
 
Rtss_roi ** slist
 

Detailed Description

The Rtss class represents a set of segmentations in polyline format, analogous to the DICOM-RT RTSTRUCT object.

Constructor & Destructor Documentation

◆ Rtss()

Rtss::Rtss ( )

◆ ~Rtss()

Rtss::~Rtss ( )

Member Function Documentation

◆ add_structure()

Rtss_roi * Rtss::add_structure ( const std::string &  structure_name,
const std::string &  color,
int  structure_id,
int  bit = -1 
)

◆ adjust_structure_names()

void Rtss::adjust_structure_names ( void  )

◆ apply_slice_list() [1/2]

void Rtss::apply_slice_list ( const Rt_study_metadata::Pointer &  rsm)

Copy slice UIDs from referenced image into the Rtss object.

◆ apply_slice_list() [2/2]

void Rtss::apply_slice_list ( const Slice_list slice_list)

Copy slice UIDs from referenced image into the Rtss object.

◆ clear()

void Rtss::clear ( void  )

◆ clone_empty()

Rtss * Rtss::clone_empty ( Rtss cxt_out,
Rtss cxt_in 
)
static

◆ debug()

void Rtss::debug ( void  )

◆ delete_structure()

void Rtss::delete_structure ( int  index)

◆ find_rasterization_geometry() [1/2]

void Rtss::find_rasterization_geometry ( float  offset[3],
float  spacing[3],
plm_long  dims[3],
Direction_cosines dc 
)

◆ find_rasterization_geometry() [2/2]

void Rtss::find_rasterization_geometry ( Plm_image_header pih)

◆ find_structure_by_id()

Rtss_roi * Rtss::find_structure_by_id ( int  structure_id)

◆ find_unused_structure_name()

std::string Rtss::find_unused_structure_name ( void  )

◆ fix_polyline_slice_numbers()

void Rtss::fix_polyline_slice_numbers ( void  )

◆ free_all_polylines()

void Rtss::free_all_polylines ( void  )

◆ get_structure_name()

std::string Rtss::get_structure_name ( size_t  index)

◆ init()

void Rtss::init ( void  )

◆ keyholize()

void Rtss::keyholize ( void  )

◆ prune_empty()

void Rtss::prune_empty ( void  )

◆ set_geometry() [1/2]

void Rtss::set_geometry ( const Plm_image::Pointer &  pli)

◆ set_geometry() [2/2]

void Rtss::set_geometry ( const Plm_image_header pih)

◆ set_rasterization_geometry()

void Rtss::set_rasterization_geometry ( void  )

◆ set_structure_name()

void Rtss::set_structure_name ( size_t  index,
const std::string &  name 
)

◆ SMART_POINTER_SUPPORT()

Rtss::SMART_POINTER_SUPPORT ( Rtss  )

Member Data Documentation

◆ have_geometry

int Rtss::have_geometry

◆ m_dc

Direction_cosines Rtss::m_dc

◆ m_dim

plm_long Rtss::m_dim[3]

◆ m_offset

float Rtss::m_offset[3]

◆ m_spacing

float Rtss::m_spacing[3]

◆ num_structures

size_t Rtss::num_structures

◆ rast_dc

Direction_cosines Rtss::rast_dc

◆ rast_dim

plm_long Rtss::rast_dim[3]

◆ rast_offset

float Rtss::rast_offset[3]

◆ rast_spacing

float Rtss::rast_spacing[3]

◆ slist

Rtss_roi** Rtss::slist

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