17 ExSelection::ExSelection(Exhibit *ex)
24 ExSelection::operator bool() const
40 // private data for each exhibit type
41 ExhibitPriv::ExhibitPriv()
49 priv = new ExhibitPriv;
57 void Exhibit::set_node(SceneNode *node)
59 this->node = priv->orig_node = node;
60 priv->orig_pos = node->get_position();
61 priv->orig_rot = node->get_rotation();
64 ExSelection Exhibit::select(const Ray &ray) const
66 return ExSelection(0);
69 ExSelection Exhibit::select(const Sphere &sph) const
71 return ExSelection(0);
74 void Exhibit::update(float dt)
78 void Exhibit::pre_draw() const
81 glMatrixMode(GL_MODELVIEW);
83 glMultMatrixf(node->get_matrix()[0]);
87 void Exhibit::draw() const
91 void Exhibit::post_draw() const
94 glMatrixMode(GL_MODELVIEW);
97 const AABox &bvol = get_aabox();
98 draw_geom_object(&bvol);
103 const AABox &Exhibit::get_aabox() const
105 aabb = node->get_bounds();