Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
a_canvas Class Reference

a vtk screen More...

#include <a_canvas.h>

+ Collaboration diagram for a_canvas:

Classes

class  file_error
 
class  filenotfound_error
 
class  model_uni_not_found_error
 
class  no_element_error
 
class  notallowed_error
 

Public Member Functions

 a_canvas ()
 
 ~a_canvas ()
 
void clear ()
 
virtual std::string type () const
 
void name (const std::string &name)
 
std::string name () const
 
void logfile (a_text &text)
 
void outputfile (a_text &text)
 
a_text & logfile ()
 
void printout (const std::string text)
 
void printout (const bool x)
 
bool existelement (const std::string &s) const
 
bool existelement (const std::string &s, a_element *&) const
 
void addelement (a_element &l)
 
void setelement (const std::string &s)
 
void unlinkelement (const std::string &s)
 
void fitelements (const std::string &m, const std::string &p)
 
const std::string getelementname () const
 
std::string listelements ()
 
void spotlight ()
 
void sunlight ()
 
void parallel_view ()
 
void perspectia_view ()
 
double scale () const
 
void scale (double val)
 
void magnification (unsigned short val)
 
bool empty () const
 
void empty (bool code)
 
virtual void interact ()
 
virtual void straighten ()
 
virtual void fit_interact ()
 
virtual void fit_deform_interact ()
 
virtual void cut_interact ()
 
void getinteract ()
 
void viewpoint (const a_point &pt)
 
void focalpoint (const a_point &pt)
 
void up (const a_point &pt)
 
void viewpoint (const double *pt)
 
void focalpoint (const double *pt)
 
void up (const double *pt)
 
a_point viewpoint () const
 
a_point focalpoint () const
 
a_point up () const
 
void pan (const double *pt)
 
void azimuth (double x)
 
void elevation (double y)
 
void roll (double z)
 
void pitch (double u)
 
void yaw (double v)
 
void distance (double d)
 
void distance0 (double d)
 
double azimuth () const
 
double elevation () const
 
double roll () const
 
double distance () const
 
void x ()
 
void X ()
 
void y ()
 
void Y ()
 
void z ()
 
void Z ()
 
void background (double R, double G, double B)
 
void size (const int w, const int h)
 
int width () const
 
int height () const
 
void fullscreenon ()
 
void fullscreenoff ()
 
void cursor_show ()
 
void cursor_hide ()
 
void output_position ()
 
void jpgout (const std::string &file)
 
void pngout (const std::string &file)
 
void vrmlout (const std::string &file)
 
void vtkout (const std::string &file)
 
void ribout (const std::string &file)
 
void tifout (const std::string &file)
 
void render ()
 
void render_clip ()
 
void reset ()
 
void open (const std::string &file)
 
void save (const std::string &file)
 

Static Public Member Functions

static const std::string help ()
 

Protected Member Functions

virtual void reset_interact ()
 
void setlightoncameraposition ()
 
void unroll ()
 

Protected Attributes

std::string name_
 
std::vector< a_element * > elements_
 
a_elementactive_element_
 
vtkRenderer * ren_
 
vtkRenderWindow * renWin_
 
vtkRenderWindowInteractor * iren_
 
float clip_ [2]
 
bool spotlight_
 
a_text output_
 
a_text log_
 
bool empty_
 
bool one_point_
 
double magnification_
 magnification value for exports More...
 

Friends

std::istream & operator>> (std::istream &i, a_canvas &w)
 
std::ostream & operator<< (std::ostream &o, a_canvas &w)
 

Detailed Description

a vtk screen

Definition at line 39 of file a_canvas.h.

Constructor & Destructor Documentation

◆ a_canvas()

a_canvas::a_canvas ( )

Definition at line 183 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ ~a_canvas()

a_canvas::~a_canvas ( )

Definition at line 218 of file a_canvas.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ addelement()

void a_canvas::addelement ( a_element l)

Definition at line 337 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ azimuth() [1/2]

double a_canvas::azimuth ( ) const

Definition at line 656 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ azimuth() [2/2]

void a_canvas::azimuth ( double  x)

Definition at line 671 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ background()

void a_canvas::background ( double  R,
double  G,
double  B 
)

Definition at line 820 of file a_canvas.cxx.

◆ clear()

void a_canvas::clear ( )

Definition at line 230 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cursor_hide()

void a_canvas::cursor_hide ( )
inline

Definition at line 119 of file a_canvas.h.

◆ cursor_show()

void a_canvas::cursor_show ( )
inline

Definition at line 118 of file a_canvas.h.

◆ cut_interact()

void a_canvas::cut_interact ( )
virtual

Definition at line 554 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ distance() [1/2]

double a_canvas::distance ( ) const

Definition at line 802 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ distance() [2/2]

void a_canvas::distance ( double  d)

Definition at line 793 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ distance0()

void a_canvas::distance0 ( double  d)

Definition at line 809 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ elevation() [1/2]

double a_canvas::elevation ( ) const

Definition at line 698 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ elevation() [2/2]

void a_canvas::elevation ( double  y)

Definition at line 708 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ empty() [1/2]

bool a_canvas::empty ( ) const
inline

Definition at line 73 of file a_canvas.h.

◆ empty() [2/2]

void a_canvas::empty ( bool  code)
inline

Definition at line 74 of file a_canvas.h.

◆ existelement() [1/2]

bool a_canvas::existelement ( const std::string &  s) const

Definition at line 311 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ existelement() [2/2]

bool a_canvas::existelement ( const std::string &  s,
a_element *&  p 
) const

Definition at line 322 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ fit_deform_interact()

void a_canvas::fit_deform_interact ( )
virtual

Definition at line 537 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ fit_interact()

void a_canvas::fit_interact ( )
virtual

Definition at line 517 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ fitelements()

void a_canvas::fitelements ( const std::string &  m,
const std::string &  p 
)

Definition at line 405 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ focalpoint() [1/3]

a_point a_canvas::focalpoint ( ) const

Definition at line 968 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ focalpoint() [2/3]

void a_canvas::focalpoint ( const a_point &  pt)

Definition at line 998 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ focalpoint() [3/3]

void a_canvas::focalpoint ( const double *  pt)

Definition at line 1032 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ fullscreenoff()

void a_canvas::fullscreenoff ( )
inline

Definition at line 117 of file a_canvas.h.

◆ fullscreenon()

void a_canvas::fullscreenon ( )
inline

Definition at line 116 of file a_canvas.h.

◆ getelementname()

const std::string a_canvas::getelementname ( ) const

Definition at line 400 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ getinteract()

void a_canvas::getinteract ( )
inline

Definition at line 81 of file a_canvas.h.

◆ height()

int a_canvas::height ( ) const

Definition at line 931 of file a_canvas.cxx.

◆ help()

const std::string a_canvas::help ( )
static

Definition at line 68 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ interact()

void a_canvas::interact ( )
virtual

Definition at line 617 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ jpgout()

void a_canvas::jpgout ( const std::string &  file)

Definition at line 1042 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ listelements()

std::string a_canvas::listelements ( )

Definition at line 366 of file a_canvas.cxx.

◆ logfile() [1/2]

a_text& a_canvas::logfile ( )
inline

Definition at line 52 of file a_canvas.h.

◆ logfile() [2/2]

void a_canvas::logfile ( a_text &  text)

Definition at line 245 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ magnification()

void a_canvas::magnification ( unsigned short  val)

Definition at line 466 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ name() [1/2]

std::string a_canvas::name ( ) const
inline

Definition at line 48 of file a_canvas.h.

+ Here is the caller graph for this function:

◆ name() [2/2]

void a_canvas::name ( const std::string &  name)

Definition at line 236 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ open()

void a_canvas::open ( const std::string &  file)

Definition at line 1182 of file a_canvas.cxx.

◆ output_position()

void a_canvas::output_position ( )

Definition at line 936 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ outputfile()

void a_canvas::outputfile ( a_text &  text)

Definition at line 251 of file a_canvas.cxx.

◆ pan()

void a_canvas::pan ( const double *  pt)

Definition at line 946 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ parallel_view()

void a_canvas::parallel_view ( )

Definition at line 450 of file a_canvas.cxx.

◆ perspectia_view()

void a_canvas::perspectia_view ( )

Definition at line 458 of file a_canvas.cxx.

◆ pitch()

void a_canvas::pitch ( double  u)

Definition at line 764 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ pngout()

void a_canvas::pngout ( const std::string &  file)

Definition at line 1059 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ printout() [1/2]

void a_canvas::printout ( const bool  x)
inline

Definition at line 54 of file a_canvas.h.

+ Here is the call graph for this function:

◆ printout() [2/2]

void a_canvas::printout ( const std::string  text)
inline

Definition at line 53 of file a_canvas.h.

◆ render()

void a_canvas::render ( )
inline

Definition at line 130 of file a_canvas.h.

+ Here is the caller graph for this function:

◆ render_clip()

void a_canvas::render_clip ( )

Definition at line 1126 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ reset()

void a_canvas::reset ( )

Definition at line 1132 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ reset_interact()

void a_canvas::reset_interact ( )
protectedvirtual

Definition at line 504 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ ribout()

void a_canvas::ribout ( const std::string &  file)

Definition at line 1099 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ roll() [1/2]

double a_canvas::roll ( ) const

Definition at line 728 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ roll() [2/2]

void a_canvas::roll ( double  z)

Definition at line 737 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ save()

void a_canvas::save ( const std::string &  file)

Definition at line 1193 of file a_canvas.cxx.

◆ scale() [1/2]

double a_canvas::scale ( ) const

Definition at line 474 of file a_canvas.cxx.

◆ scale() [2/2]

void a_canvas::scale ( double  val)

Definition at line 483 of file a_canvas.cxx.

◆ setelement()

void a_canvas::setelement ( const std::string &  s)

Definition at line 377 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ setlightoncameraposition()

void a_canvas::setlightoncameraposition ( )
protected

Definition at line 1154 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ size()

void a_canvas::size ( const int  w,
const int  h 
)
inline

Definition at line 113 of file a_canvas.h.

◆ spotlight()

void a_canvas::spotlight ( )

Definition at line 425 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ straighten()

void a_canvas::straighten ( )
virtual

Definition at line 493 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ sunlight()

void a_canvas::sunlight ( )

Definition at line 437 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ tifout()

void a_canvas::tifout ( const std::string &  file)

Definition at line 1111 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ type()

virtual std::string a_canvas::type ( ) const
inlinevirtual

Definition at line 45 of file a_canvas.h.

+ Here is the caller graph for this function:

◆ unlinkelement()

void a_canvas::unlinkelement ( const std::string &  s)

Definition at line 386 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ unroll()

void a_canvas::unroll ( )
protected

Definition at line 784 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ up() [1/3]

a_point a_canvas::up ( ) const

Definition at line 976 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ up() [2/3]

void a_canvas::up ( const a_point &  pt)

Definition at line 1014 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ up() [3/3]

void a_canvas::up ( const double *  pt)

Definition at line 1037 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ viewpoint() [1/3]

a_point a_canvas::viewpoint ( ) const

Definition at line 960 of file a_canvas.cxx.

+ Here is the caller graph for this function:

◆ viewpoint() [2/3]

void a_canvas::viewpoint ( const a_point &  pt)

Definition at line 984 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ viewpoint() [3/3]

void a_canvas::viewpoint ( const double *  pt)

Definition at line 1027 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ vrmlout()

void a_canvas::vrmlout ( const std::string &  file)

Definition at line 1075 of file a_canvas.cxx.

◆ vtkout()

void a_canvas::vtkout ( const std::string &  file)

Definition at line 1085 of file a_canvas.cxx.

◆ width()

int a_canvas::width ( ) const

Definition at line 925 of file a_canvas.cxx.

◆ x()

void a_canvas::x ( )

Definition at line 829 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ X()

void a_canvas::X ( )

Definition at line 845 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ y()

void a_canvas::y ( )

Definition at line 861 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Y()

void a_canvas::Y ( )

Definition at line 877 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ yaw()

void a_canvas::yaw ( double  v)

Definition at line 747 of file a_canvas.cxx.

+ Here is the call graph for this function:

◆ z()

void a_canvas::z ( )

Definition at line 893 of file a_canvas.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Z()

void a_canvas::Z ( )

Definition at line 909 of file a_canvas.cxx.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
a_canvas w 
)
friend

Definition at line 1174 of file a_canvas.cxx.

◆ operator>>

std::istream& operator>> ( std::istream &  i,
a_canvas w 
)
friend

Definition at line 1169 of file a_canvas.cxx.

Member Data Documentation

◆ active_element_

a_element* a_canvas::active_element_
protected

Definition at line 156 of file a_canvas.h.

◆ clip_

float a_canvas::clip_[2]
protected

clipping range

Definition at line 161 of file a_canvas.h.

◆ elements_

std::vector<a_element *> a_canvas::elements_
protected

Definition at line 155 of file a_canvas.h.

◆ empty_

bool a_canvas::empty_
protected

Definition at line 168 of file a_canvas.h.

◆ iren_

vtkRenderWindowInteractor* a_canvas::iren_
protected

Definition at line 159 of file a_canvas.h.

◆ log_

a_text a_canvas::log_
protected

where the text of the commands is sent

Definition at line 166 of file a_canvas.h.

◆ magnification_

double a_canvas::magnification_
protected

magnification value for exports

Definition at line 171 of file a_canvas.h.

◆ name_

std::string a_canvas::name_
protected

Definition at line 154 of file a_canvas.h.

◆ one_point_

bool a_canvas::one_point_
protected

Definition at line 169 of file a_canvas.h.

◆ output_

a_text a_canvas::output_
protected

where the text results are sent

Definition at line 164 of file a_canvas.h.

◆ ren_

vtkRenderer* a_canvas::ren_
protected

Definition at line 157 of file a_canvas.h.

◆ renWin_

vtkRenderWindow* a_canvas::renWin_
protected

Definition at line 158 of file a_canvas.h.

◆ spotlight_

bool a_canvas::spotlight_
protected

Definition at line 162 of file a_canvas.h.


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