DD::Image::SourceGeo Class Reference

Inherits DD::Image::NullGeo.

Inherited by DD::Image::ReadGeo.

List of all members.

Public Member Functions

 SourceGeo (Node *)
Iopinput_iop () const
virtual Iopdefault_material_iop () const
int minimum_inputs () const
int maximum_inputs () const
Opdefault_input (int) const
bool test_input (int input, Op *op) const
const char * input_label (int input, char *buffer) const
void knobs (Knob_Callback)
void build_input_handles (ViewerContext *)
const char * Class () const
const char * node_help () const
virtual void init_geoinfo_parms (Scene &, GeometryList &)
bool render_checkmark () const

Protected Member Functions

void render_checkmark (bool v)
void build_matrix_handles (ViewerContext *ctx, Matrix4 localMatrix)
void get_geometry_hash ()
void geometry_engine (Scene &, GeometryList &out)
virtual void create_geometry (Scene &, GeometryList &out)=0


Detailed Description

Subclass of GeoOp that does not take another GeoOp as input. This alters the control panel knobs and tooltips slightly to avoid references to the input geometry.

Constructor & Destructor Documentation

SourceGeo::SourceGeo ( Node *  node  ) 

Constructs a single texture input.

References DD::Image::GeoOp::display3d_, DD::Image::Op::inputs(), and DD::Image::GeoOp::render_mode_.


Member Function Documentation

Iop * SourceGeo::input_iop (  )  const

Returns the Iop connected to the texture input.

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

Referenced by get_geometry_hash().

void SourceGeo::knobs ( Knob_Callback  f  )  [virtual]

Calls the GeoOp baseclass with source_geo=true so that the display knobs are correct for a Source object.

Reimplemented from DD::Image::GeoOp.

References DD::Image::Divider().

void SourceGeo::build_input_handles ( ViewerContext ctx  ) 

Constructs the transform to apply before the iop input is followed.

Reimplemented from DD::Image::Op.

void SourceGeo::init_geoinfo_parms ( Scene scene,
GeometryList out 
) [virtual]

void SourceGeo::build_matrix_handles ( ViewerContext ctx,
Matrix4  localMatrix 
) [protected]

void SourceGeo::get_geometry_hash (  )  [protected, virtual]

Hash up knobs that affect the geo's material.

Reimplemented from DD::Image::NullGeo.

Reimplemented in DD::Image::ReadGeo.

References DD::Image::Hash::append(), DD::Image::GeoOp::geo_hash, DD::Image::Material::get_geometry_hash(), DD::Image::Op::hash(), and input_iop().

void SourceGeo::geometry_engine ( Scene scene,
GeometryList out 
) [protected, virtual]

SourceGeo subclass implementation calls geometry_engine() on each GeoInfo in the local cache list.

Reimplemented from DD::Image::NullGeo.

References init_geoinfo_parms(), DD::Image::Mask_Primitives, and DD::Image::GeometryList::synchronize_objects().



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