plastimatch
Loading...
Searching...
No Matches
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 Types

typedef Rtss Self
 
typedef std::shared_ptr< SelfPointer
 

Public Member Functions

 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 set_structure_override (int structure_id, const float rsp_value)
 
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 Rtss::Pointer New ()
 
static Rtss::Pointer New (Rtss *t)
 
template<class U1 >
static Rtss::Pointer New (const U1 &u1)
 
template<class U1 , class U2 >
static Rtss::Pointer New (const U1 &u1, const U2 &u2)
 
template<class U1 , class U2 , class U3 >
static Rtss::Pointer New (const U1 &u1, const U2 &u2, const U3 &u3)
 
template<class U1 , class U2 , class U3 , class U4 , class U5 , class U6 >
static Rtss::Pointer New (const U1 &u1, const U2 &u2, const U3 &u3, const U4 &u4, const U5 &u5, const U6 &u6)
 
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.

Member Typedef Documentation

◆ Pointer

typedef std::shared_ptr<Self> Rtss::Pointer

◆ Self

typedef Rtss Rtss::Self

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 )

◆ New() [1/6]

static Rtss::Pointer Rtss::New ( )
inlinestatic

◆ New() [2/6]

template<class U1 >
static Rtss::Pointer Rtss::New ( const U1 & u1)
inlinestatic

◆ New() [3/6]

template<class U1 , class U2 >
static Rtss::Pointer Rtss::New ( const U1 & u1,
const U2 & u2 )
inlinestatic

◆ New() [4/6]

template<class U1 , class U2 , class U3 >
static Rtss::Pointer Rtss::New ( const U1 & u1,
const U2 & u2,
const U3 & u3 )
inlinestatic

◆ New() [5/6]

template<class U1 , class U2 , class U3 , class U4 , class U5 , class U6 >
static Rtss::Pointer Rtss::New ( const U1 & u1,
const U2 & u2,
const U3 & u3,
const U4 & u4,
const U5 & u5,
const U6 & u6 )
inlinestatic

◆ New() [6/6]

static Rtss::Pointer Rtss::New ( Rtss * t)
inlinestatic

◆ 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 )

◆ set_structure_override()

void Rtss::set_structure_override ( int structure_id,
const float rsp_value )

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: