Inherits DD::Image::NullGeo.
Inherited by DD::Image::ReadGeo.
Public Member Functions | |
SourceGeo (Node *) | |
Iop * | input_iop () const |
virtual Iop * | default_material_iop () const |
int | minimum_inputs () const |
int | maximum_inputs () const |
Op * | default_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) |
Only constructors should call this, unless knobs() is not called. | |
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 |
virtual void | updateGeneralInfo () |
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.
SourceGeo::SourceGeo | ( | Node * | node | ) |
Constructs a single texture input.
References DD::Image::GeoOp::display3d_, DD::Image::Op::inputs(), and DD::Image::GeoOp::render_mode_.
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(), and DD::Image::Knob::HIDDEN.
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] |
Assign all the base parameters for each GeoInfo in the output GeometryList.
References DD::Image::GeoInfoRenderState::castShadow, DD::Image::GeoInfo::display3d, DD::Image::GeoInfo::final_geo, DD::Image::Matrix4::makeIdentity(), DD::Image::GeoInfo::material, DD::Image::GeoInfo::matrix, DD::Image::GeoInfoRenderState::receiveShadow, DD::Image::GeoInfo::recursion_geo, DD::Image::GeoInfo::render_mode, DD::Image::GeoInfo::select_geo, DD::Image::GeoInfo::selectable, DD::Image::GeoOp::selectable_, DD::Image::GeoInfo::selected, DD::Image::GeometryList::size(), and DD::Image::GeoInfo::source_geo.
Referenced by geometry_engine().
void SourceGeo::build_matrix_handles | ( | ViewerContext * | ctx, |
Matrix4 | localMatrix | ||
) | [protected] |
build_handles with the context model matrix multiplied by the local matrix so nodes up the tree are displayed correctly Deprecated. Use GeoOp::build_matrix_handles with a local matrix pointer instead.
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::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.
Reimplemented in DD::Image::ReadGeo.
References init_geoinfo_parms(), DD::Image::Mask_Primitives, and DD::Image::GeometryList::synchronize_objects().