
|
|
This file was automatically generated from diguyAuthorVisualObjectHandle.h. Do not edit this file directly; the changes will be lost.Includes: declspec_diguy.h | diguy_typedefs.h | diguy_vector_classes.h
Contents:
Alphabetical IndexLink against: libdiguy
Summary:
The diguyAuthorVisualObjectHandle class provides an interface for creating supplemental visuals needed for creating DI-Guy scenarios in a Host IG.
Object handle visuals are used for simple visuals such as beads on character paths, selection handles, etc.
class diguyAuthorVisualObjectHandle
|
Function for setting the create function for object handle visual subclass objects. This should be called after diguy_author_initialize(), but before any scenario is created of loaded.
class BDI_DECLSPEC_diguy diguyAuthorVisualObjectHandle { public: diguyAuthorVisualMaterial* get_visual_material(); enum { HANDLE_SHAPE_CYLINDER = 0, HANDLE_SHAPE_CONE, HANDLE_SHAPE_SPHERE, HANDLE_SHAPE_PATH_BEAD, HANDLE_SHAPE_PATH_STOP_SIGN }; int get_handle_shape() {return m_handle_shape;} float get_radius(); float get_height(); float get_bead_depth(); float get_bead_arm_thickness(); int get_inverted(); diguyVec3f get_position(); diguyVec3d get_position_double(); diguyVec3f get_orientation(); long get_uid(); int get_visible(); virtual void build(); virtual void unbuild(); virtual void update(int update_flags); virtual void draw(); virtual void show(); virtual void hide();
function diguyAuthorVisualObjectHandle::get_visual_material |
Prototype:
diguyAuthorVisualMaterial* get_visual_material();Returns the visual material to be used for rendering this object.
enumeration |
enum { HANDLE_SHAPE_CYLINDER = 0, HANDLE_SHAPE_CONE, HANDLE_SHAPE_SPHERE, HANDLE_SHAPE_PATH_BEAD, HANDLE_SHAPE_PATH_STOP_SIGN };The shapes the handle can have.HANDLE_SHAPE_CYLINDER
A cylinder oriented along the Z axis, with its base at the origin.HANDLE_SHAPE_CONE
A cone oriented along the Z axis, with its base at the origin. If get_inverted() returns 1, the point will be at the origin.HANDLE_SHAPE_SPHERE
A sphere, centered at the origin.HANDLE_SHAPE_PATH_BEAD
Usually a plus sign with depth, oriented so it can rotate around the X axis.HANDLE_SHAPE_PATH_STOP_SIGN
Usually an octagon with depth, oriented so it can rotate around the X axis.
function diguyAuthorVisualObjectHandle::get_handle_shape |
Prototype:
int get_handle_shape();Returns the handle shape. This will be one of the enum values above.
function diguyAuthorVisualObjectHandle::get_radius |
Prototype:
float get_radius();Returns the handle radius, for those shapes that have one, including:
- cylinder
- cone
- sphere
- path_bead
- path_stop_sign
function diguyAuthorVisualObjectHandle::get_height |
Prototype:
float get_height();Returns the handle height, for those shapes that have one, including:
- cylinder
- cone
function diguyAuthorVisualObjectHandle::get_bead_depth |
Prototype:
float get_bead_depth();Returns the bead depth along the X axis, for those shapes that have one, including:
- path_bead
- path_stop_sign
Returns the bead thickness, for those shapes that have one, including:
- path_bead
function diguyAuthorVisualObjectHandle::get_bead_arm_thickness |
Prototype:
float get_bead_arm_thickness();
function diguyAuthorVisualObjectHandle::get_inverted |
Prototype:
int get_inverted();Returns whether the handle shape should be inverted. Valid for:
- cone
function diguyAuthorVisualObjectHandle::get_position |
Prototype:
diguyVec3f get_position();Returns the position, in meters from the origin, of the object handle in the Boston Dynamics global coordinate system. See diguyCharacter::set_position() for a description of the coordinate system.
function diguyAuthorVisualObjectHandle::get_position_double |
Prototype:
diguyVec3d get_position_double();Returns the high precision position of the object handle.
function diguyAuthorVisualObjectHandle::get_orientation |
Prototype:
diguyVec3f get_orientation();Returns the orientation, in degrees, of the object handle in the Boston Dynamics global coordinate system. See diguyCharacter::set_position() for a description of the coordinate system.
function diguyAuthorVisualObjectHandle::get_uid |
Prototype:
long get_uid();Returns the uid (unique identifier) of this object handle.
function diguyAuthorVisualObjectHandle::get_visible |
Prototype:
int get_visible();Returns 1 if this visual should be visible, else 0.
| Virtual Functions |
The functions in this section are all virtual functions that will be called by DI-Guy Author at various times during DI-Guy execution.
Because the functions are all virtual, DI-Guy programmers can create a subclass of this class and override them. Unless otherwise stated, the base class functions do not need to be called.
function diguyAuthorVisualObjectHandle::build |
Prototype:
Description:virtual void build();
See diguyAuthorVisualWaypoint::build() for general information about this function.
function diguyAuthorVisualObjectHandle::unbuild |
Prototype:
Description:virtual void unbuild();
See diguyAuthorVisualWaypoint::unbuild() for general information about this function.
function diguyAuthorVisualObjectHandle::update |
Prototype:
Description:virtual void update(int update_flags);
See diguyAuthorVisualWaypoint::update() for general information about this function.DIGUY_GRAPHICS_VISUAL_UPDATE_GEOMETRY
Object handles have different shapes based on the handle shape returned by get_handle_shape().
function diguyAuthorVisualObjectHandle::draw |
Prototype:
Description:virtual void draw();
See diguyAuthorVisualWaypoint::draw() for general information about this function.
function diguyAuthorVisualObjectHandle::show |
Prototype:
Description:virtual void show();
See diguyAuthorVisualWaypoint::show() for general information about this function.
function diguyAuthorVisualObjectHandle::hide |
Prototype:
Description:virtual void hide();
See diguyAuthorVisualWaypoint::hide() for general information about this function.
ALL RIGHTS RESERVED.
These coded instructions, statements, and computer programs contain unpublished proprietary information of Boston Dynamics and are protected by Copyright Laws of the United States. They may not be used, duplicated, or disclosed in any form, in whole or in part, without the prior written consent from Boston Dynamics.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the government is subject to restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Sofware clause at DFARS 252.227-7013 and/or in similar or successor clauses in the FAR, or the DOD or NASA FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the Commercial Computer Software--Restricted Rights at 48 CFR 52.227-19, as applicable. Unpublished-rights reserved under the Copyright Laws of the United States.
Contractor/Manufacturer is:
Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.