DD::Image::GeoReader Class Reference

List of all members.

Classes

class  Description

Public Member Functions

 GeoReader (ReadGeo *)
virtual ~GeoReader ()
virtual void geometry_engine (Scene &, GeometryList &out)
const char * filename () const
bool readTextureWCoord ()

Protected Member Functions

virtual void _open ()

Protected Attributes

ReadGeogeo

Friends

class ReadGeo


Detailed Description

Reads data from a geometry file.

The ReadGeo creates one of these for each file it reads. Each different file type is a different subclass. Each subclass defines a Reader_Description object, all of these are searched to figure out what subclass to use.

The base class for GeoReader both provides default implementations and serves as the "NullReader" that is used when the type cannot be figured out.


Constructor & Destructor Documentation

GeoReader::GeoReader ( ReadGeo i  ) 

Subclasses should have constructors that match Reader_Description::constructor.

GeoReader::~GeoReader (  )  [virtual]

The destructor must close any files (even though the ReadGeo may have opened them).


Member Function Documentation

void GeoReader::_open (  )  [protected, virtual]

This is called before the first call to geometry_engine(). It should do any expensive setup.

void GeoReader::geometry_engine ( Scene ,
GeometryList out 
) [virtual]

Read geometry from the file into the local GeoInfo geometry data structure.

References DD::Image::Op::debug().

Referenced by DD::Image::ReadGeo::create_geometry().

const char* DD::Image::GeoReader::filename (  )  const [inline]

The filename

bool DD::Image::GeoReader::readTextureWCoord (  )  [inline]

read texture texture w coord



©2009 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk