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_screen Class Reference

a vtk screen More...

#include <a_screen.h>

+ Collaboration diagram for a_screen:

Classes

class  file_error
 
class  filenotfound_error
 
class  model_uni_not_found_error
 
class  no_layer_error
 
class  notallowed_error
 

Public Member Functions

 a_screen ()
 
 ~a_screen ()
 
virtual std::string type () const
 
void logfile (a_text &text)
 
void outputfile (a_text &text)
 
void printout (const std::string text)
 
void printout (const bool val)
 
bool existlayer (const std::string &s) const
 
bool existlayer (const std::string &s, a_screenlayer *&) const
 
virtual void newlayer (const std::string &s)
 
void newlayer (const a_screenlayer &l)
 
virtual void setlayer (const std::string &s)
 
virtual void eraselayer (const std::string &s)
 
void setofflayer (const std::string &s)
 
void setonlayer (const std::string &s)
 
const std::string getlayer () const
 
std::string listlayers ()
 
void color (float r, float g, float b)
 
void R (double v)
 
void G (double v)
 
void B (double v)
 
double R () const
 
double G () const
 
double B () const
 
void thickness (const int)
 
int thickness () const
 
void spotlight ()
 
void sunlight ()
 
void parallel_view ()
 
void perspectia_view ()
 
bool empty () const
 
void empty (bool code)
 
virtual void interact ()
 
void getinteract ()
 
void point (const a_point &p)
 
void point (double x, double y, double z)
 
void line (const a_point &p1, const a_point &p2)
 
void line (double x1, double y1, double z1, double x2, double y2, double z2)
 
void vertex (const a_point &p)
 
void vertex (double x, double y, double z)
 
void endpolyline ()
 
void closepolyline ()
 
void vertex0 (double x, double y, double z)
 
void endpolyline0 ()
 
void closepolyline0 ()
 
void surfacepoint (const a_point &p)
 
void surfacepoint (double x, double y, double z)
 
void eraselastpoint ()
 
void eraselastline ()
 
void eraselastpolyline ()
 
void viewpoint (const a_point &pt)
 
void focalpoint (const a_point &pt)
 
void viewpoint (const double *pt)
 
void focalpoint (const double *pt)
 
a_point viewpoint () const
 
a_point focalpoint () 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 background (double R, double G, double B)
 
void fullscreenon ()
 
void fullscreenoff ()
 
void cursor_show ()
 
void cursor_hide ()
 
void output_position ()
 
void dxfin (const std::string &file)
 
void dxfout (const std::string &file)
 
void ptin (const std::string &file)
 
void ptout (const std::string &file)
 
void tifout (const std::string &file)
 
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 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

void point0 (double x, double y, double z)
 
void line0 (double x1, double y1, double z1, double x2, double y2, double z2)
 
void setlightoncameraposition ()
 
void unroll ()
 

Protected Attributes

vtkPolyData * data_
 
std::vector< a_screenlayer * > layers_
 
a_screenlayeractive_layer_
 
vtkRenderer * ren_
 
vtkRenderWindow * renWin_
 
vtkRenderWindowInteractor * iren_
 
double x0_
 
double y0_
 
double z0_
 
float clip_ [2]
 
bool spotlight_
 
a_text output_
 
a_text log_
 
bool empty_
 
bool one_point_
 

Friends

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

Detailed Description

a vtk screen

Definition at line 37 of file a_screen.h.

Constructor & Destructor Documentation

◆ a_screen()

a_screen::a_screen ( )

Definition at line 121 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ ~a_screen()

a_screen::~a_screen ( )

Definition at line 174 of file a_screen.cxx.

+ Here is the call graph for this function:

Member Function Documentation

◆ azimuth() [1/2]

double a_screen::azimuth ( ) const
inline

Definition at line 115 of file a_screen.h.

◆ azimuth() [2/2]

void a_screen::azimuth ( double  x)

Definition at line 608 of file a_screen.cxx.

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

◆ B() [1/2]

double a_screen::B ( ) const
inline

Definition at line 68 of file a_screen.h.

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

◆ B() [2/2]

void a_screen::B ( double  v)
inline

Definition at line 65 of file a_screen.h.

+ Here is the call graph for this function:

◆ background()

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

Definition at line 687 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ closepolyline()

void a_screen::closepolyline ( )

Definition at line 522 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ closepolyline0()

void a_screen::closepolyline0 ( )

Definition at line 556 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ color()

void a_screen::color ( float  r,
float  g,
float  b 
)

Definition at line 363 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ cursor_hide()

void a_screen::cursor_hide ( )
inline

Definition at line 124 of file a_screen.h.

◆ cursor_show()

void a_screen::cursor_show ( )
inline

Definition at line 123 of file a_screen.h.

◆ distance() [1/2]

double a_screen::distance ( ) const

Definition at line 669 of file a_screen.cxx.

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

◆ distance() [2/2]

void a_screen::distance ( double  d)

Definition at line 660 of file a_screen.cxx.

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

◆ distance0()

void a_screen::distance0 ( double  d)

Definition at line 676 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ dxfin()

void a_screen::dxfin ( const std::string &  file)

Definition at line 808 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ dxfout()

void a_screen::dxfout ( const std::string &  file)

Definition at line 879 of file a_screen.cxx.

◆ elevation() [1/2]

double a_screen::elevation ( ) const
inline

Definition at line 116 of file a_screen.h.

◆ elevation() [2/2]

void a_screen::elevation ( double  y)

Definition at line 617 of file a_screen.cxx.

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

◆ empty() [1/2]

bool a_screen::empty ( ) const
inline

Definition at line 77 of file a_screen.h.

◆ empty() [2/2]

void a_screen::empty ( bool  code)
inline

Definition at line 78 of file a_screen.h.

◆ endpolyline()

void a_screen::endpolyline ( )

Definition at line 508 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ endpolyline0()

void a_screen::endpolyline0 ( )

Definition at line 551 of file a_screen.cxx.

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

◆ eraselastline()

void a_screen::eraselastline ( )

Definition at line 594 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ eraselastpoint()

void a_screen::eraselastpoint ( )

Definition at line 587 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ eraselastpolyline()

void a_screen::eraselastpolyline ( )

Definition at line 601 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ eraselayer()

void a_screen::eraselayer ( const std::string &  s)
virtual

Definition at line 315 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ existlayer() [1/2]

bool a_screen::existlayer ( const std::string &  s) const

Definition at line 222 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ existlayer() [2/2]

bool a_screen::existlayer ( const std::string &  s,
a_screenlayer *&  p 
) const

Definition at line 232 of file a_screen.cxx.

◆ focalpoint() [1/3]

a_point a_screen::focalpoint ( ) const

Definition at line 728 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ focalpoint() [2/3]

void a_screen::focalpoint ( const a_point &  pt)

Definition at line 767 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ focalpoint() [3/3]

void a_screen::focalpoint ( const double *  pt)

Definition at line 803 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ fullscreenoff()

void a_screen::fullscreenoff ( )
inline

Definition at line 122 of file a_screen.h.

◆ fullscreenon()

void a_screen::fullscreenon ( )
inline

Definition at line 121 of file a_screen.h.

◆ G() [1/2]

double a_screen::G ( ) const
inline

Definition at line 67 of file a_screen.h.

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

◆ G() [2/2]

void a_screen::G ( double  v)
inline

Definition at line 64 of file a_screen.h.

+ Here is the call graph for this function:

◆ getinteract()

void a_screen::getinteract ( )
inline

Definition at line 81 of file a_screen.h.

◆ getlayer()

const std::string a_screen::getlayer ( ) const

Definition at line 358 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ help()

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

Definition at line 49 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ interact()

void a_screen::interact ( )
virtual

Definition at line 417 of file a_screen.cxx.

◆ jpgout()

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

Definition at line 933 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ line() [1/2]

void a_screen::line ( const a_point &  p1,
const a_point &  p2 
)

Definition at line 477 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ line() [2/2]

void a_screen::line ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)

Definition at line 482 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ line0()

void a_screen::line0 ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2 
)
protected

Definition at line 541 of file a_screen.cxx.

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

◆ listlayers()

std::string a_screen::listlayers ( )

Definition at line 295 of file a_screen.cxx.

◆ logfile()

void a_screen::logfile ( a_text &  text)
inline

Definition at line 44 of file a_screen.h.

◆ newlayer() [1/2]

void a_screen::newlayer ( const a_screenlayer l)

Definition at line 269 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ newlayer() [2/2]

void a_screen::newlayer ( const std::string &  s)
virtual

Definition at line 245 of file a_screen.cxx.

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

◆ open()

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

Definition at line 1088 of file a_screen.cxx.

◆ output_position()

void a_screen::output_position ( )

Definition at line 696 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ outputfile()

void a_screen::outputfile ( a_text &  text)
inline

Definition at line 45 of file a_screen.h.

◆ pan()

void a_screen::pan ( const double *  pt)

Definition at line 706 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ parallel_view()

void a_screen::parallel_view ( )

Definition at line 403 of file a_screen.cxx.

◆ perspectia_view()

void a_screen::perspectia_view ( )

Definition at line 410 of file a_screen.cxx.

◆ pitch()

void a_screen::pitch ( double  u)

Definition at line 633 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ pngout()

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

Definition at line 949 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ point() [1/2]

void a_screen::point ( const a_point &  p)

Definition at line 453 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ point() [2/2]

void a_screen::point ( double  x,
double  y,
double  z 
)

Definition at line 458 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ point0()

void a_screen::point0 ( double  x,
double  y,
double  z 
)
protected

Definition at line 536 of file a_screen.cxx.

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

◆ printout() [1/2]

void a_screen::printout ( const bool  val)
inline

Definition at line 49 of file a_screen.h.

◆ printout() [2/2]

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

Definition at line 48 of file a_screen.h.

◆ ptin()

void a_screen::ptin ( const std::string &  file)

Definition at line 903 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ ptout()

void a_screen::ptout ( const std::string &  file)

Definition at line 920 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ R() [1/2]

double a_screen::R ( ) const
inline

Definition at line 66 of file a_screen.h.

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

◆ R() [2/2]

void a_screen::R ( double  v)
inline

Definition at line 63 of file a_screen.h.

+ Here is the call graph for this function:

◆ render()

void a_screen::render ( )
inline

Definition at line 139 of file a_screen.h.

◆ render_clip()

void a_screen::render_clip ( )

Definition at line 1018 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ reset()

void a_screen::reset ( )

Definition at line 1024 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ ribout()

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

Definition at line 991 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ roll() [1/2]

double a_screen::roll ( ) const
inline

Definition at line 117 of file a_screen.h.

◆ roll() [2/2]

void a_screen::roll ( double  z)

Definition at line 626 of file a_screen.cxx.

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

◆ save()

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

Definition at line 1100 of file a_screen.cxx.

◆ setlayer()

void a_screen::setlayer ( const std::string &  s)
virtual

Definition at line 306 of file a_screen.cxx.

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

◆ setlightoncameraposition()

void a_screen::setlightoncameraposition ( )
protected

Definition at line 1044 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ setofflayer()

void a_screen::setofflayer ( const std::string &  s)

Definition at line 340 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ setonlayer()

void a_screen::setonlayer ( const std::string &  s)

Definition at line 349 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ spotlight()

void a_screen::spotlight ( )

Definition at line 380 of file a_screen.cxx.

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

◆ sunlight()

void a_screen::sunlight ( )

Definition at line 391 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ surfacepoint() [1/2]

void a_screen::surfacepoint ( const a_point &  p)

Definition at line 561 of file a_screen.cxx.

◆ surfacepoint() [2/2]

void a_screen::surfacepoint ( double  x,
double  y,
double  z 
)

Definition at line 566 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ thickness() [1/2]

int a_screen::thickness ( ) const
inline

Definition at line 70 of file a_screen.h.

+ Here is the call graph for this function:

◆ thickness() [2/2]

void a_screen::thickness ( const int  t)

Definition at line 371 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ tifout()

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

Definition at line 1003 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ type()

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

Definition at line 43 of file a_screen.h.

+ Here is the caller graph for this function:

◆ unroll()

void a_screen::unroll ( )
protected

Definition at line 651 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ vertex() [1/2]

void a_screen::vertex ( const a_point &  p)

Definition at line 497 of file a_screen.cxx.

◆ vertex() [2/2]

void a_screen::vertex ( double  x,
double  y,
double  z 
)

Definition at line 502 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ vertex0()

void a_screen::vertex0 ( double  x,
double  y,
double  z 
)

Definition at line 546 of file a_screen.cxx.

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

◆ viewpoint() [1/3]

a_point a_screen::viewpoint ( ) const

Definition at line 720 of file a_screen.cxx.

+ Here is the caller graph for this function:

◆ viewpoint() [2/3]

void a_screen::viewpoint ( const a_point &  pt)

Definition at line 736 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ viewpoint() [3/3]

void a_screen::viewpoint ( const double *  pt)

Definition at line 798 of file a_screen.cxx.

+ Here is the call graph for this function:

◆ vrmlout()

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

Definition at line 964 of file a_screen.cxx.

◆ vtkout()

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

Definition at line 974 of file a_screen.cxx.

◆ yaw()

void a_screen::yaw ( double  v)

Definition at line 642 of file a_screen.cxx.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 1080 of file a_screen.cxx.

◆ operator>>

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

Definition at line 1059 of file a_screen.cxx.

Member Data Documentation

◆ active_layer_

a_screenlayer* a_screen::active_layer_
protected

Definition at line 163 of file a_screen.h.

◆ clip_

float a_screen::clip_[2]
protected

clipping range

Definition at line 175 of file a_screen.h.

◆ data_

vtkPolyData* a_screen::data_
protected

Definition at line 161 of file a_screen.h.

◆ empty_

bool a_screen::empty_
protected

Definition at line 182 of file a_screen.h.

◆ iren_

vtkRenderWindowInteractor* a_screen::iren_
protected

Definition at line 166 of file a_screen.h.

◆ layers_

std::vector<a_screenlayer *> a_screen::layers_
protected

Definition at line 162 of file a_screen.h.

◆ log_

a_text a_screen::log_
protected

where the text of the commands is sent

Definition at line 180 of file a_screen.h.

◆ one_point_

bool a_screen::one_point_
protected

Definition at line 183 of file a_screen.h.

◆ output_

a_text a_screen::output_
protected

where the text results are sent

Definition at line 178 of file a_screen.h.

◆ ren_

vtkRenderer* a_screen::ren_
protected

Definition at line 164 of file a_screen.h.

◆ renWin_

vtkRenderWindow* a_screen::renWin_
protected

Definition at line 165 of file a_screen.h.

◆ spotlight_

bool a_screen::spotlight_
protected

Definition at line 176 of file a_screen.h.

◆ x0_

double a_screen::x0_
protected

azimuth

Definition at line 169 of file a_screen.h.

◆ y0_

double a_screen::y0_
protected

elevation

Definition at line 171 of file a_screen.h.

◆ z0_

double a_screen::z0_
protected

roll

Definition at line 173 of file a_screen.h.


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