OpenStructure
Public Member Functions | Data Fields
PovState Class Reference

#include <povray.hh>

Public Member Functions

 PovState (const std::string &pov_file, const std::string &inc_file, const std::string &wdir)
 
void write_preamble ()
 
void write_postamble ()
 
void write_background (const Color &c)
 
void write_camera (float fov, float zdist)
 
void write_default_light ()
 
void write_fog (float zdist, float znear, float zfar, const Color &c, bool f)
 
void start_obj (const std::string &name, float tp, float lw, float ps)
 
void write_obj_tex (const std::string &name)
 
void end_obj ()
 
void write_sphere (const geom::Vec3 &p, float r, const Color &c, const std::string &name)
 
void write_cyl (const geom::Vec3 &p1, const geom::Vec3 &p2, float r, const Color &c, const std::string &name, bool open)
 
void write_merge_or_union (const std::string &name)
 
std::string write_coord (const geom::Vec3 &v)
 
std::string write_coord (float *v)
 
std::string write_norm (const geom::Vec3 &n)
 
std::string write_norm (float *n)
 
std::ostream & pov ()
 
std::ostream & inc ()
 

Data Fields

bool use_tf
 
geom::Transform tf
 

Detailed Description

Definition at line 35 of file povray.hh.

Constructor & Destructor Documentation

◆ PovState()

PovState ( const std::string &  pov_file,
const std::string &  inc_file,
const std::string &  wdir 
)

Member Function Documentation

◆ end_obj()

void end_obj ( )

◆ inc()

std::ostream& inc ( )
inline

Definition at line 62 of file povray.hh.

◆ pov()

std::ostream& pov ( )
inline

Definition at line 61 of file povray.hh.

◆ start_obj()

void start_obj ( const std::string &  name,
float  tp,
float  lw,
float  ps 
)

◆ write_background()

void write_background ( const Color c)

◆ write_camera()

void write_camera ( float  fov,
float  zdist 
)

◆ write_coord() [1/2]

std::string write_coord ( const geom::Vec3 v)

◆ write_coord() [2/2]

std::string write_coord ( float *  v)

◆ write_cyl()

void write_cyl ( const geom::Vec3 p1,
const geom::Vec3 p2,
float  r,
const Color c,
const std::string &  name,
bool  open 
)

◆ write_default_light()

void write_default_light ( )

◆ write_fog()

void write_fog ( float  zdist,
float  znear,
float  zfar,
const Color c,
bool  f 
)

◆ write_merge_or_union()

void write_merge_or_union ( const std::string &  name)

◆ write_norm() [1/2]

std::string write_norm ( const geom::Vec3 n)

◆ write_norm() [2/2]

std::string write_norm ( float *  n)

◆ write_obj_tex()

void write_obj_tex ( const std::string &  name)

◆ write_postamble()

void write_postamble ( )

◆ write_preamble()

void write_preamble ( )

◆ write_sphere()

void write_sphere ( const geom::Vec3 p,
float  r,
const Color c,
const std::string &  name 
)

Field Documentation

◆ tf

Definition at line 66 of file povray.hh.

◆ use_tf

bool use_tf

Definition at line 65 of file povray.hh.


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