Operates on a pfm file. More...
#include "pfmTrans.h"
Public Member Functions | |
void | add_transform_options () |
Adds -TS, -TT, etc. More... | |
bool | process_pfm (const Filename &input_filename, PfmFile &file) |
Handles a single pfm file. More... | |
void | run () |
![]() | |
ProgramBase (const string &name=string()) | |
string | get_exec_command () const |
Returns the command that invoked this program, as a shell-friendly string, suitable for pasting into the comments of output files. More... | |
virtual void | parse_command_line (int argc, char **argv) |
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_args(). More... | |
void | show_description () |
Writes the program description to stderr. More... | |
void | show_options () |
Describes each of the available options to stderr. More... | |
void | show_text (const string &text) |
Formats the indicated text to stderr with the known _terminal_width. More... | |
void | show_text (const string &prefix, int indent_width, string text) |
Formats the indicated text and its prefix for output to stderr with the known _terminal_width. More... | |
void | show_usage () |
Writes the usage line(s) to stderr. More... | |
void | write_man_page (ostream &out) |
Generates a man page in nroff syntax based on the description and options. More... | |
Additional Inherited Members | |
![]() | |
typedef pdeque< string > | Args |
![]() | |
Args | _program_args |
Filename | _program_name |
Operates on a pfm file.
Definition at line 31 of file pfmTrans.h.
void PfmTrans::add_transform_options | ( | ) |
Adds -TS, -TT, etc.
as valid options for this program. If the user specifies one of the options on the command line, the data will be transformed when the egg file is written out.
Definition at line 298 of file pfmTrans.cxx.
Handles a single pfm file.
Definition at line 175 of file pfmTrans.cxx.
References PfmFile::apply_crop(), PfmFile::calc_autocrop(), PfmFile::flip(), PfmVizzer::generate_vis_mesh(), Filename::get_basename(), Filename::get_basename_wo_extension(), PfmFile::get_channel(), PNMImageHeader::get_num_channels(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), PfmFile::has_point(), TexturePool::load_texture(), Filename::open_write(), NodePath::reparent_to(), PfmFile::resize(), NodePath::set_name(), PfmFile::set_no_data_nan(), Filename::set_text(), NodePath::set_texture(), NodePath::set_transparency(), PfmVizzer::set_vis_2d(), PfmVizzer::set_vis_inverse(), PfmFile::set_zero_special(), PfmFile::write(), and PfmFile::xform().