Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FltTexture Class Reference

Represents a single texture in the texture palette. More...

#include <fltTexture.h>

Inheritance diagram for FltTexture:

FltRecord TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Types

typedef pvector< GeospecificControlPointGeospecificControlPoints
typedef pvector< SubtextureDefSubtextureDefs
enum  FileFormat {
  FF_none = -1, FF_att_8_pattern = 0, FF_att_8_template = 1, FF_sgi_i = 2,
  FF_sgi_ia = 3, FF_sgi_rgb = 4, FF_sgi_rgba = 5
}
enum  Minification {
  MN_point = 0, MN_bilinear = 1, MN_OB_mipmap = 2, MN_mipmap_point = 3,
  MN_mipmap_linear = 4, MN_mipmap_bilinear = 5, MN_mipmap_trilinear = 6, MN_bicubic = 8,
  MN_bilinear_gequal = 9, MN_bilinear_lequal = 10, MN_bicubic_gequal = 11, MN_bicubic_lequal = 12
}
enum  Magnification {
  MG_point = 0, MG_bilinear = 1, MG_bicubic = 3, MG_sharpen = 4,
  MG_add_detail = 5, MG_modulate_detail = 6, MG_bilinear_gequal = 7, MG_bilinear_lequal = 8,
  MG_bicubic_gequal = 9, MG_bicubic_lequal = 10
}
enum  RepeatType { RT_repeat = 0, RT_clamp = 1 }
enum  EnvironmentType { ET_modulate = 0, ET_blend = 1, ET_decal = 2, ET_color = 3 }
enum  InternalFormat {
  IF_default = 0, IF_i_12a_4 = 1, IF_ia_8 = 2, IF_rgb_5 = 3,
  IF_rgba_4 = 4, IF_ia_12 = 5, IF_rgba_8 = 6, IF_rgba_12 = 7,
  IF_i_16 = 8, IF_rgb_12 = 9
}
enum  ExternalFormat { EF_default = 0, EF_pack_8 = 1, EF_pack_16 = 2 }
enum  ProjectionType { PT_flat_earth = 0, PT_lambert = 3, PT_utm = 4, PT_undefined = 7 }
enum  EarthModel {
  EM_wgs84 = 0, EM_wgs72 = 1, EM_bessel = 2, EM_clarke_1866 = 3,
  EM_nad27 = 4
}
enum  ImageOrigin { IO_lower_left = 0, IO_upper_left = 1 }
enum  PointsUnits { PU_degrees = 0, PU_meters = 1, PU_pixels = 2 }
enum  Hemisphere { H_southern = 0, H_northern = 1 }

Public Member Functions

 FltTexture (FltHeader *header)
virtual void apply_converted_filenames ()
 Walks the hierarchy at this record and below and copies the _converted_filename record into the _orig_filename record, so the flt file will be written out with the converted filename instead of what was originally read in.

Filename get_texture_filename () const
 Returns the name of the texture image file.

void set_texture_filename (const Filename &filename)
 Changes the name of the texture image file.

Filename get_attr_filename () const
 Returns the name of the texture's associated .attr file.

FltError read_attr_data ()
 Opens up the texture's .attr file and reads its data into the extra FltTexture fields.

FltError write_attr_data () const
 Writes the texture's .attr file.

FltError write_attr_data (Filename attr_filename) const
 Writes the texture's .attr file to the named file.

virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
int get_num_children () const
 Returns the number of child records of this record.

FltRecordget_child (int n) const
 Returns the nth child of this record.

void clear_children ()
 Removes all children from this record.

void add_child (FltRecord *child)
 Adds a new child to the end of the list of children for this record.

int get_num_subfaces () const
 Returns the number of subface records of this record.

FltRecordget_subface (int n) const
 Returns the nth subface of this record.

void clear_subfaces ()
 Removes all subfaces from this record.

void add_subface (FltRecord *subface)
 Adds a new subface to the end of the list of subfaces for this record.

int get_num_extensions () const
 Returns the number of extension attribute records for this object.

FltRecordget_extension (int n) const
 Returns the nth extension of this record.

void clear_extensions ()
 Removes all extensions from this record.

void add_extension (FltRecord *extension)
 Adds a new extension to the end of the list of extensions for this record.

int get_num_ancillary () const
 Returns the number of unsupported ancillary records of this record.

FltRecordget_ancillary (int n) const
 Returns the nth unsupported ancillary record of this record.

void clear_ancillary ()
 Removes all unsupported ancillary records from this record.

void add_ancillary (FltRecord *ancillary)
 Adds a new unsupported ancillary record to the end of the list of ancillary records for this record.

bool has_comment () const
 Returns true if this record has a nonempty comment, false otherwise.

const string & get_comment () const
 Retrieves the comment for this record, or empty string if the record has no comment.

void clear_comment ()
 Removes the comment for this record.

void set_comment (const string &comment)
 Changes the comment for this record.

void check_remaining_size (const DatagramIterator &di, const string &name=string()) const
 Checks that the iterator has no bytes left, as it should at the end of a successfully read record.

virtual void output (ostream &out) const
 Writes a quick one-line description of the record, but not its children.

virtual void write (ostream &out, int indent_level=0) const
 Writes a multiple-line description of the record and all of its children.

int get_type_index () const
bool is_of_type (TypeHandle handle) const
bool is_exact_type (TypeHandle handle) const
int get_ref_count () const
int ref () const
int unref () const
void test_ref_count_integrity () const

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Public Attributes

string _orig_filename
Filename _converted_filename
int _pattern_index
int _x_location
int _y_location
int _num_texels_u
int _num_texels_v
int _real_world_size_u
int _real_world_size_v
int _up_vector_x
int _up_vector_y
FileFormat _file_format
Minification _min_filter
Magnification _mag_filter
RepeatType _repeat
RepeatType _repeat_u
RepeatType _repeat_v
int _modify_flag
int _x_pivot_point
int _y_pivot_point
EnvironmentType _env_type
bool _intensity_is_alpha
double _float_real_world_size_u
double _float_real_world_size_v
int _imported_origin_code
int _kernel_version
InternalFormat _internal_format
ExternalFormat _external_format
bool _use_mipmap_kernel
float _mipmap_kernel [8]
bool _use_lod_scale
LODScale _lod_scale [8]
float _clamp
Magnification _mag_filter_alpha
Magnification _mag_filter_color
double _lambert_conic_central_meridian
double _lambert_conic_upper_latitude
double _lambert_conic_lower_latitude
bool _use_detail
int _detail_j
int _detail_k
int _detail_m
int _detail_n
int _detail_scramble
bool _use_tile
float _tile_lower_left_u
float _tile_lower_left_v
float _tile_upper_right_u
float _tile_upper_right_v
ProjectionType _projection
EarthModel _earth_model
int _utm_zone
ImageOrigin _image_origin
PointsUnits _geospecific_points_units
Hemisphere _geospecific_hemisphere
string _comment
int _file_version
GeospecificControlPoints _geospecific_control_points
SubtextureDefs _subtexture_defs

Protected Member Functions

virtual bool extract_record (FltRecordReader &reader)
 Fills in the information in this record based on the information given in the indicated datagram, whose opcode has already been read.

virtual bool build_record (FltRecordWriter &writer) const
 Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.

void write_children (ostream &out, int indent_level) const
 Assuming the current write position has been left at the end of the last line of the record description, writes out the list of children.

FltRecordcreate_new_record (FltOpcode opcode) const
 Creates a new FltRecord corresponding to the opcode.

FltError read_record_and_children (FltRecordReader &reader)
 Extracts this record information from the current record presented in the reader, then advances the reader and continues to read any children, if present.

virtual bool extract_ancillary (FltRecordReader &reader)
 Checks whether the given record, which follows this record sequentially in the file, is an ancillary record of this record.

virtual FltError write_record_and_children (FltRecordWriter &writer) const
 Writes this record out to the flt file, along with all of its ancillary records and children records.

virtual FltError write_ancillary (FltRecordWriter &writer) const
 Writes whatever ancillary records are required for this record.


Static Protected Member Functions

bool is_ancillary (FltOpcode opcode)
 Returns true if the indicated opcode corresponds to an ancillary record type, false otherwise.


Protected Attributes

FltHeader_header
int _ref_count

Private Member Functions

FltError unpack_attr (const Datagram &datagram)
 Reads the data from the attribute file.

FltError pack_attr (Datagram &datagram) const
 Packs the attribute data into a big datagram.


Static Private Attributes

TypeHandle _type_handle

Friends

class FltHeader

Detailed Description

Represents a single texture in the texture palette.

Definition at line 39 of file fltTexture.h.


Member Typedef Documentation

typedef pvector<GeospecificControlPoint> FltTexture::GeospecificControlPoints
 

Definition at line 169 of file fltTexture.h.

typedef pvector<SubtextureDef> FltTexture::SubtextureDefs
 

Definition at line 178 of file fltTexture.h.


Member Enumeration Documentation

enum FltTexture::EarthModel
 

Enumeration values:
EM_wgs84 
EM_wgs72 
EM_bessel 
EM_clarke_1866 
EM_nad27 

Definition at line 135 of file fltTexture.h.

enum FltTexture::EnvironmentType
 

Enumeration values:
ET_modulate 
ET_blend 
ET_decal 
ET_color 

Definition at line 102 of file fltTexture.h.

enum FltTexture::ExternalFormat
 

Enumeration values:
EF_default 
EF_pack_8 
EF_pack_16 

Definition at line 122 of file fltTexture.h.

enum FltTexture::FileFormat
 

Enumeration values:
FF_none 
FF_att_8_pattern 
FF_att_8_template 
FF_sgi_i 
FF_sgi_ia 
FF_sgi_rgb 
FF_sgi_rgba 

Definition at line 59 of file fltTexture.h.

enum FltTexture::Hemisphere
 

Enumeration values:
H_southern 
H_northern 

Definition at line 154 of file fltTexture.h.

enum FltTexture::ImageOrigin
 

Enumeration values:
IO_lower_left 
IO_upper_left 

Definition at line 143 of file fltTexture.h.

enum FltTexture::InternalFormat
 

Enumeration values:
IF_default 
IF_i_12a_4 
IF_ia_8 
IF_rgb_5 
IF_rgba_4 
IF_ia_12 
IF_rgba_8 
IF_rgba_12 
IF_i_16 
IF_rgb_12 

Definition at line 109 of file fltTexture.h.

enum FltTexture::Magnification
 

Enumeration values:
MG_point 
MG_bilinear 
MG_bicubic 
MG_sharpen 
MG_add_detail 
MG_modulate_detail 
MG_bilinear_gequal 
MG_bilinear_lequal 
MG_bicubic_gequal 
MG_bicubic_lequal 

Definition at line 84 of file fltTexture.h.

enum FltTexture::Minification
 

Enumeration values:
MN_point 
MN_bilinear 
MN_OB_mipmap 
MN_mipmap_point 
MN_mipmap_linear 
MN_mipmap_bilinear 
MN_mipmap_trilinear 
MN_bicubic 
MN_bilinear_gequal 
MN_bilinear_lequal 
MN_bicubic_gequal 
MN_bicubic_lequal 

Definition at line 69 of file fltTexture.h.

enum FltTexture::PointsUnits
 

Enumeration values:
PU_degrees 
PU_meters 
PU_pixels 

Definition at line 148 of file fltTexture.h.

enum FltTexture::ProjectionType
 

Enumeration values:
PT_flat_earth 
PT_lambert 
PT_utm 
PT_undefined 

Definition at line 128 of file fltTexture.h.

enum FltTexture::RepeatType
 

Enumeration values:
RT_repeat 
RT_clamp 

Definition at line 97 of file fltTexture.h.


Constructor & Destructor Documentation

FltTexture::FltTexture FltHeader header  ) 
 

Definition at line 39 of file fltTexture.cxx.

References _clamp, _detail_j, _detail_k, _detail_m, _detail_n, _detail_scramble, _earth_model, _env_type, _external_format, _file_format, _file_version, _float_real_world_size_u, _float_real_world_size_v, _geospecific_hemisphere, _geospecific_points_units, _image_origin, _imported_origin_code, _intensity_is_alpha, _internal_format, _kernel_version, _lambert_conic_central_meridian, _lambert_conic_lower_latitude, _lambert_conic_upper_latitude, _mag_filter, _mag_filter_alpha, _mag_filter_color, _min_filter, _modify_flag, _num_texels_u, _num_texels_v, _projection, _real_world_size_u, _real_world_size_v, _repeat, _repeat_u, _repeat_v, _tile_lower_left_u, _tile_lower_left_v, _tile_upper_right_u, _tile_upper_right_v, _up_vector_x, _up_vector_y, _use_detail, _use_lod_scale, _use_mipmap_kernel, _use_tile, _utm_zone, _x_pivot_point, _y_pivot_point, EF_default, EM_wgs84, ET_modulate, FF_none, H_southern, IF_default, IO_lower_left, MG_point, MN_point, PT_flat_earth, PU_degrees, and RT_repeat.


Member Function Documentation

void FltRecord::add_ancillary FltRecord ancillary  )  [inherited]
 

Adds a new unsupported ancillary record to the end of the list of ancillary records for this record.

This record will be written to the flt file following this record, without attempting to understand what is in it.

Normally, there is no reason to use this function; if the data stored in the FltRecord requires one or more ancillary record, the appropriate records will automatically be generated when the record is written. This function is only required to output a record whose type is not supported by the flt loader. But it would be better to extend the flt loader to know about this new kind of data record.

Definition at line 341 of file fltRecord.cxx.

void FltRecord::add_child FltRecord child  )  [inherited]
 

Adds a new child to the end of the list of children for this record.

Definition at line 126 of file fltRecord.cxx.

References nassertr, and NULL.

Referenced by FltRecord::is_ancillary().

void FltRecord::add_extension FltRecord extension  )  [inherited]
 

Adds a new extension to the end of the list of extensions for this record.

This should be a record of type FO_extension.

Definition at line 250 of file fltRecord.cxx.

Referenced by FltRecord::is_ancillary().

void FltRecord::add_subface FltRecord subface  )  [inherited]
 

Adds a new subface to the end of the list of subfaces for this record.

Definition at line 187 of file fltRecord.cxx.

Referenced by FltRecord::is_ancillary().

void FltTexture::apply_converted_filenames  )  [virtual]
 

Walks the hierarchy at this record and below and copies the _converted_filename record into the _orig_filename record, so the flt file will be written out with the converted filename instead of what was originally read in.

Reimplemented from FltRecord.

Definition at line 114 of file fltTexture.cxx.

References _converted_filename.

bool FltTexture::build_record FltRecordWriter writer  )  const [protected, virtual]
 

Fills up the current record on the FltRecordWriter with data for this record, but does not advance the writer.

Returns true on success, false if there is some error.

Reimplemented from FltRecord.

Definition at line 329 of file fltTexture.cxx.

References _mipmap_kernel, _use_mipmap_kernel, and DatagramIterator::get_be_float32().

void FltRecord::check_remaining_size const DatagramIterator di,
const string &  name = string()
const [inherited]
 

Checks that the iterator has no bytes left, as it should at the end of a successfully read record.

If there *are* remaining bytes, print a warning message but otherwise don't worry about it.

If we are attempting to read a flt file whose version is newer than the newest this program understands, don't even print a warning message, since this is exactly the sort of thing we expect.

Definition at line 426 of file fltRecord.cxx.

References FO_14_material_palette, FO_bounding_box, FO_bounding_cylinder, FO_bounding_sphere, FO_bv_center, FO_bv_orientation, FO_cat_data, FO_comment, FO_general_matrix, FO_local_vertex_pool, FO_long_id, FO_multitexture, FO_put, FO_replicate, FO_road_zone, FO_rotate_about_edge, FO_rotate_about_point, FO_rotate_and_scale, FO_scale, FO_transform_matrix, FO_translate, FO_uv_list, FO_vector, FO_vertex_c, and FO_vertex_palette.

Referenced by FltLocalVertexPool::FltLocalVertexPool(), FltVectorRecord::get_vector(), FltTransformScale::recompute_matrix(), FltTransformRotateAboutPoint::recompute_matrix(), FltTransformRotateAboutEdge::recompute_matrix(), FltTransformGeneralMatrix::set_matrix(), and FltInstanceRef::write().

void FltRecord::clear_ancillary  )  [inherited]
 

Removes all unsupported ancillary records from this record.

See get_num_ancillary().

Definition at line 304 of file fltRecord.cxx.

References FltRecord::_header, FltHeader::get_flt_version(), DatagramIterator::get_remaining_size(), TypedReferenceCount::get_type(), FltHeader::max_flt_version(), and nout.

void FltRecord::clear_children  )  [inherited]
 

Removes all children from this record.

Definition at line 111 of file fltRecord.cxx.

void FltRecord::clear_comment  )  [inherited]
 

Removes the comment for this record.

Definition at line 384 of file fltRecord.cxx.

void FltRecord::clear_extensions  )  [inherited]
 

Removes all extensions from this record.

Definition at line 233 of file fltRecord.cxx.

void FltRecord::clear_subfaces  )  [inherited]
 

Removes all subfaces from this record.

Definition at line 172 of file fltRecord.cxx.

References nassertr, and NULL.

FltRecord * FltRecord::create_new_record FltOpcode  opcode  )  const [protected, inherited]
 

Creates a new FltRecord corresponding to the opcode.

If the opcode is unknown, creates a FltUnsupportedRecord.

Definition at line 672 of file fltRecord.cxx.

References reader().

Referenced by FltRecord::is_ancillary().

bool FltRecord::extract_ancillary FltRecordReader reader  )  [protected, virtual, inherited]
 

Checks whether the given record, which follows this record sequentially in the file, is an ancillary record of this record.

If it is, extracts the relevant information and returns true; otherwise, leaves it alone and returns false.

Reimplemented in FltBead, FltBeadID, and FltMesh.

Definition at line 882 of file fltRecord.cxx.

Referenced by FltRecord::is_ancillary().

bool FltTexture::extract_record FltRecordReader reader  )  [protected, virtual]
 

Fills in the information in this record based on the information given in the indicated datagram, whose opcode has already been read.

Returns true on success, false if the datagram is invalid.

Reimplemented from FltRecord.

Definition at line 288 of file fltTexture.cxx.

References nout.

virtual TypeHandle FltTexture::force_init_type void   )  [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 248 of file fltTexture.h.

FltRecord * FltRecord::get_ancillary int  n  )  const [inherited]
 

Returns the nth unsupported ancillary record of this record.

See get_num_ancillary().

Definition at line 288 of file fltRecord.cxx.

Filename FltTexture::get_attr_filename  )  const
 

Returns the name of the texture's associated .attr file.

This contains some additional MultiGen information about the texture parameters. This is, of course, just the name of the texture with .attr appended.

Normally, it won't be necessary to access this file directly; you can call read_attr_data() or write_attr_data() to get at the data stored in this file. (And read_attr_data() is called automatically when the Flt file is read in.)

Definition at line 175 of file fltTexture.cxx.

References FE_read_error.

Referenced by read_attr_data(), and write_attr_data().

FltRecord * FltRecord::get_child int  n  )  const [inherited]
 

Returns the nth child of this record.

Definition at line 97 of file fltRecord.cxx.

Referenced by FltCopy::scan_flt().

TypeHandle FltTexture::get_class_type void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

Definition at line 249 of file fltTexture.h.

const string & FltRecord::get_comment  )  const [inherited]
 

Retrieves the comment for this record, or empty string if the record has no comment.

Definition at line 371 of file fltRecord.cxx.

References indent(), and FltRecord::write_children().

FltRecord * FltRecord::get_extension int  n  )  const [inherited]
 

Returns the nth extension of this record.

Definition at line 219 of file fltRecord.cxx.

References nassertr, and NULL.

int FltRecord::get_num_ancillary  )  const [inherited]
 

Returns the number of unsupported ancillary records of this record.

These are ancillary records that appeared following this record in the flt file but that aren't directly understood by the flt loader--normally, an ancillary record is examined and decoded on the spot, and no pointer to it is kept.

Definition at line 273 of file fltRecord.cxx.

int FltRecord::get_num_children  )  const [inherited]
 

Returns the number of child records of this record.

This reflects the normal scene graph hierarchy.

Definition at line 84 of file fltRecord.cxx.

References NULL.

int FltRecord::get_num_extensions  )  const [inherited]
 

Returns the number of extension attribute records for this object.

These are auxiliary nodes, presumably of type FO_extension, that have some local meaning to the object.

Definition at line 206 of file fltRecord.cxx.

int FltRecord::get_num_subfaces  )  const [inherited]
 

Returns the number of subface records of this record.

Normally, subfaces will only be present on object records, although it is logically possible for them to appear anywhere.

Definition at line 145 of file fltRecord.cxx.

FltRecord * FltRecord::get_subface int  n  )  const [inherited]
 

Returns the nth subface of this record.

Definition at line 158 of file fltRecord.cxx.

Filename FltTexture::get_texture_filename  )  const
 

Returns the name of the texture image file.

Definition at line 128 of file fltTexture.cxx.

Referenced by set_texture_filename().

virtual TypeHandle FltTexture::get_type void   )  const [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 245 of file fltTexture.h.

bool FltRecord::has_comment  )  const [inherited]
 

Returns true if this record has a nonempty comment, false otherwise.

Definition at line 356 of file fltRecord.cxx.

References TypedReferenceCount::get_type().

void FltTexture::init_type void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

Definition at line 252 of file fltTexture.h.

References _type_handle.

bool FltRecord::is_ancillary FltOpcode  opcode  )  [static, protected, inherited]
 

Returns true if the indicated opcode corresponds to an ancillary record type, false otherwise.

In general, this function is used to identify ancillary records that are not presently supported by the FltReader; these will be ignored. Normally, ancillary records will be detected and processed by extract_ancillary().

Definition at line 575 of file fltRecord.cxx.

References FltRecord::_header, FltRecord::add_child(), FltRecord::add_extension(), FltHeader::add_instance(), FltRecord::add_subface(), FltRecord::create_new_record(), DCAST, FltRecord::extract_ancillary(), FltRecord::extract_record(), FE_end_of_file, FE_invalid_record, FE_ok, flt_error_abort, FltError, FO_pop, FO_pop_extension, FO_pop_face, FO_push, FO_push_extension, FO_push_face, FltInstanceDefinition::get_class_type(), nout, PT, and reader().

void FltRecord::output ostream &  out  )  const [virtual, inherited]
 

Writes a quick one-line description of the record, but not its children.

This is a human-readable description, primarily for debugging; to write a flt file, use FltHeader::write_flt().

Reimplemented in FltBeadID, FltExternalReference, FltUnsupportedRecord, and FltVertexList.

Definition at line 485 of file fltRecord.cxx.

References FO_cat, FO_clip_region, FO_curve, FO_extension, FO_light_source, FO_pop, FO_pop_attribute, FO_pop_face, FO_push, FO_push_attribute, FO_push_face, FO_road_construction, FO_road_path, FO_road_segment, FO_sound, FO_switch, and FO_text.

FltError FltTexture::pack_attr Datagram datagram  )  const [private]
 

Packs the attribute data into a big datagram.

Definition at line 476 of file fltTexture.cxx.

References _geospecific_control_points.

FltError FltTexture::read_attr_data  ) 
 

Opens up the texture's .attr file and reads its data into the extra FltTexture fields.

This is normally performed automatically when the Flt file is read from disk.

Definition at line 195 of file fltTexture.cxx.

References FltError, get_attr_filename(), and write_attr_data().

FltError FltRecord::read_record_and_children FltRecordReader reader  )  [protected, inherited]
 

Extracts this record information from the current record presented in the reader, then advances the reader and continues to read any children, if present.

On return, the reader is position on the next sibling record to this record.

Returns FE_ok if successful, otherwise on error.

Definition at line 740 of file fltRecord.cxx.

References FE_ok.

void FltRecord::set_comment const string &  comment  )  [inherited]
 

Changes the comment for this record.

Definition at line 397 of file fltRecord.cxx.

void FltTexture::set_texture_filename const Filename filename  ) 
 

Changes the name of the texture image file.

Definition at line 141 of file fltTexture.cxx.

References Filename::binary_filename(), and get_texture_filename().

FltError FltTexture::unpack_attr const Datagram datagram  )  [private]
 

Reads the data from the attribute file.

Definition at line 362 of file fltTexture.cxx.

References _comment, _file_version, _geospecific_control_points, _geospecific_hemisphere, _geospecific_points_units, and _image_origin.

void FltRecord::write ostream &  out,
int  indent_level = 0
const [virtual, inherited]
 

Writes a multiple-line description of the record and all of its children.

This is a human-readable description, primarily for debugging; to write a flt file, use FltHeader::write_flt().

Reimplemented in FltInstanceRef.

Definition at line 504 of file fltRecord.cxx.

References FO_instance, FO_instance_ref, FO_pop_extension, FO_push_extension, and nout.

FltError FltRecord::write_ancillary FltRecordWriter writer  )  const [protected, virtual, inherited]
 

Writes whatever ancillary records are required for this record.

Returns FE_ok on success, or something else if there is some error.

Reimplemented in FltBead, FltBeadID, and FltMesh.

Definition at line 1020 of file fltRecord.cxx.

Referenced by FltBead::extract_ancillary().

FltError FltTexture::write_attr_data Filename  attr_filename  )  const
 

Writes the texture's .attr file to the named file.

Definition at line 253 of file fltTexture.cxx.

References FE_ok, get_attr_filename(), and nout.

FltError FltTexture::write_attr_data  )  const
 

Writes the texture's .attr file.

This may or may not be performed automatically, according to the setting of FltHeader::set_auto_attr_update().

Definition at line 238 of file fltTexture.cxx.

Referenced by read_attr_data().

void FltRecord::write_children ostream &  out,
int  indent_level
const [protected, inherited]
 

Assuming the current write position has been left at the end of the last line of the record description, writes out the list of children.

Definition at line 522 of file fltRecord.cxx.

References FltRecord::_header, FO_curve, FO_external_ref, FO_face, FO_group, FO_instance, FO_instance_ref, FO_local_vertex_pool, FO_lod, FO_mesh, FO_mesh_primitive, FO_object, FO_vector, FO_vertex_list, and nout.

Referenced by FltRecord::get_comment(), and FltInstanceRef::get_instance().

FltError FltRecord::write_record_and_children FltRecordWriter writer  )  const [protected, virtual, inherited]
 

Writes this record out to the flt file, along with all of its ancillary records and children records.

Returns FE_ok on success, or something else on error.

Reimplemented in FltInstanceRef.

Definition at line 904 of file fltRecord.cxx.

Referenced by FltInstanceRef::extract_record().


Friends And Related Function Documentation

friend class FltHeader [friend]
 

Definition at line 261 of file fltTexture.h.


Member Data Documentation

float FltTexture::_clamp
 

Definition at line 208 of file fltTexture.h.

Referenced by FltTexture().

string FltTexture::_comment
 

Definition at line 231 of file fltTexture.h.

Referenced by unpack_attr().

Filename FltTexture::_converted_filename
 

Definition at line 46 of file fltTexture.h.

Referenced by apply_converted_filenames().

int FltTexture::_detail_j
 

Definition at line 215 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_detail_k
 

Definition at line 216 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_detail_m
 

Definition at line 217 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_detail_n
 

Definition at line 218 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_detail_scramble
 

Definition at line 219 of file fltTexture.h.

Referenced by FltTexture().

EarthModel FltTexture::_earth_model
 

Definition at line 226 of file fltTexture.h.

Referenced by FltTexture().

EnvironmentType FltTexture::_env_type
 

Definition at line 195 of file fltTexture.h.

Referenced by FltTexture().

ExternalFormat FltTexture::_external_format
 

Definition at line 203 of file fltTexture.h.

Referenced by FltTexture().

FileFormat FltTexture::_file_format
 

Definition at line 186 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_file_version
 

Definition at line 232 of file fltTexture.h.

Referenced by FltTexture(), and unpack_attr().

double FltTexture::_float_real_world_size_u
 

Definition at line 198 of file fltTexture.h.

Referenced by FltTexture().

double FltTexture::_float_real_world_size_v
 

Definition at line 199 of file fltTexture.h.

Referenced by FltTexture().

GeospecificControlPoints FltTexture::_geospecific_control_points
 

Definition at line 233 of file fltTexture.h.

Referenced by pack_attr(), and unpack_attr().

Hemisphere FltTexture::_geospecific_hemisphere
 

Definition at line 230 of file fltTexture.h.

Referenced by FltTexture(), and unpack_attr().

PointsUnits FltTexture::_geospecific_points_units
 

Definition at line 229 of file fltTexture.h.

Referenced by FltTexture(), and unpack_attr().

FltHeader* FltRecord::_header [protected, inherited]
 

Definition at line 107 of file fltRecord.h.

Referenced by FltVertexList::add_vertex(), FltRecord::clear_ancillary(), FltVertexList::extract_record(), FltInstanceRef::extract_record(), FltGroup::extract_record(), FltInstanceRef::FltInstanceRef(), FltLocalVertexPool::FltLocalVertexPool(), FltGeometry::get_alt_rgb(), FltInstanceRef::get_instance(), FltGeometry::get_texture(), FltGeometry::has_alt_color(), FltGeometry::has_texture(), FltRecord::is_ancillary(), and FltRecord::write_children().

ImageOrigin FltTexture::_image_origin
 

Definition at line 228 of file fltTexture.h.

Referenced by FltTexture(), and unpack_attr().

int FltTexture::_imported_origin_code
 

Definition at line 200 of file fltTexture.h.

Referenced by FltTexture().

bool FltTexture::_intensity_is_alpha
 

Definition at line 196 of file fltTexture.h.

Referenced by FltTexture().

InternalFormat FltTexture::_internal_format
 

Definition at line 202 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_kernel_version
 

Definition at line 201 of file fltTexture.h.

Referenced by FltTexture().

double FltTexture::_lambert_conic_central_meridian
 

Definition at line 211 of file fltTexture.h.

Referenced by FltTexture().

double FltTexture::_lambert_conic_lower_latitude
 

Definition at line 213 of file fltTexture.h.

Referenced by FltTexture().

double FltTexture::_lambert_conic_upper_latitude
 

Definition at line 212 of file fltTexture.h.

Referenced by FltTexture().

LODScale FltTexture::_lod_scale[8]
 

Definition at line 207 of file fltTexture.h.

Magnification FltTexture::_mag_filter
 

Definition at line 188 of file fltTexture.h.

Referenced by FltTexture().

Magnification FltTexture::_mag_filter_alpha
 

Definition at line 209 of file fltTexture.h.

Referenced by FltTexture().

Magnification FltTexture::_mag_filter_color
 

Definition at line 210 of file fltTexture.h.

Referenced by FltTexture().

Minification FltTexture::_min_filter
 

Definition at line 187 of file fltTexture.h.

Referenced by FltTexture().

float FltTexture::_mipmap_kernel[8]
 

Definition at line 205 of file fltTexture.h.

Referenced by build_record().

int FltTexture::_modify_flag
 

Definition at line 192 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_num_texels_u
 

Definition at line 180 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_num_texels_v
 

Definition at line 181 of file fltTexture.h.

Referenced by FltTexture().

string FltTexture::_orig_filename
 

Definition at line 45 of file fltTexture.h.

int FltTexture::_pattern_index
 

Definition at line 47 of file fltTexture.h.

ProjectionType FltTexture::_projection
 

Definition at line 225 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_real_world_size_u
 

Definition at line 182 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_real_world_size_v
 

Definition at line 183 of file fltTexture.h.

Referenced by FltTexture().

RepeatType FltTexture::_repeat
 

Definition at line 189 of file fltTexture.h.

Referenced by FltTexture().

RepeatType FltTexture::_repeat_u
 

Definition at line 190 of file fltTexture.h.

Referenced by FltTexture().

RepeatType FltTexture::_repeat_v
 

Definition at line 191 of file fltTexture.h.

Referenced by FltTexture().

SubtextureDefs FltTexture::_subtexture_defs
 

Definition at line 234 of file fltTexture.h.

float FltTexture::_tile_lower_left_u
 

Definition at line 221 of file fltTexture.h.

Referenced by FltTexture().

float FltTexture::_tile_lower_left_v
 

Definition at line 222 of file fltTexture.h.

Referenced by FltTexture().

float FltTexture::_tile_upper_right_u
 

Definition at line 223 of file fltTexture.h.

Referenced by FltTexture().

float FltTexture::_tile_upper_right_v
 

Definition at line 224 of file fltTexture.h.

Referenced by FltTexture().

TypeHandle FltTexture::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Definition at line 29 of file fltTexture.cxx.

Referenced by init_type().

int FltTexture::_up_vector_x
 

Definition at line 184 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_up_vector_y
 

Definition at line 185 of file fltTexture.h.

Referenced by FltTexture().

bool FltTexture::_use_detail
 

Definition at line 214 of file fltTexture.h.

Referenced by FltTexture().

bool FltTexture::_use_lod_scale
 

Definition at line 206 of file fltTexture.h.

Referenced by FltTexture().

bool FltTexture::_use_mipmap_kernel
 

Definition at line 204 of file fltTexture.h.

Referenced by build_record(), and FltTexture().

bool FltTexture::_use_tile
 

Definition at line 220 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_utm_zone
 

Definition at line 227 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_x_location
 

Definition at line 48 of file fltTexture.h.

int FltTexture::_x_pivot_point
 

Definition at line 193 of file fltTexture.h.

Referenced by FltTexture().

int FltTexture::_y_location
 

Definition at line 49 of file fltTexture.h.

int FltTexture::_y_pivot_point
 

Definition at line 194 of file fltTexture.h.

Referenced by FltTexture().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:26:55 2003 for Panda-Tool by doxygen1.3