Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MayaDisplayDevice Class Reference

FileRenderer subclass to export VMD scenes to Maya ASCII format. More...

#include <MayaDisplayDevice.h>

Inheritance diagram for MayaDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 MayaDisplayDevice (void)
virtual ~MayaDisplayDevice (void)
virtual int open_file (const char *filename)
 open the file; don't write the header info return TRUE if opened okay if file already opened, complain, and close previous file this will also reset the state variables. More...

virtual void close_file (void)
 close the file. This is called by update, and exists due to symmetry. Also, is called for case when open is called when a file was already open. More...

void write_header (void)
 write the header info. This is an alias for prepare3D. More...

void write_trailer (void)
 write any trailer info. This is called by update. More...


Protected Methods

void beginrepgeomgroup (const char *)
 start a new representation geometry group, used to preserve some of the original scene hierarchy when loading VMD scenes into tools like Maya, 3DS Max, etc. More...

void comment (const char *)
 Comment describing representation geometry. More...

void line (float *xyz1, float *xyz2)
 draw a single line. More...

void point (float *xyz)
 draw an unlit point. More...

void sphere (float *xyzr)
 draw a sphere. More...

void triangle (const float *, const float *, const float *, const float *, const float *, const float *)
 single color triangle with interpolated surface normals. More...


Detailed Description

FileRenderer subclass to export VMD scenes to Maya ASCII format.

Definition at line 28 of file MayaDisplayDevice.h.


Constructor & Destructor Documentation

MayaDisplayDevice::MayaDisplayDevice void   
 

Definition at line 37 of file MayaDisplayDevice.C.

MayaDisplayDevice::~MayaDisplayDevice void    [virtual]
 

Definition at line 41 of file MayaDisplayDevice.C.


Member Function Documentation

void MayaDisplayDevice::beginrepgeomgroup const char *    s [protected, virtual]
 

start a new representation geometry group, used to preserve some of the original scene hierarchy when loading VMD scenes into tools like Maya, 3DS Max, etc.

Reimplemented from FileRenderer.

Definition at line 44 of file MayaDisplayDevice.C.

References FileRenderer::outfile.

void MayaDisplayDevice::close_file void    [virtual]
 

close the file. This is called by update, and exists due to symmetry. Also, is called for case when open is called when a file was already open.

Reimplemented from FileRenderer.

Definition at line 309 of file MayaDisplayDevice.C.

References FileRenderer::isOpened, FileRenderer::my_filename, NULL, and FileRenderer::outfile.

Referenced by open_file.

void MayaDisplayDevice::comment const char *    s [protected, virtual]
 

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 49 of file MayaDisplayDevice.C.

References FileRenderer::outfile.

void MayaDisplayDevice::line float *    xyz1,
float *    xyz2
[protected, virtual]
 

draw a single line.

Reimplemented from FileRenderer.

Definition at line 90 of file MayaDisplayDevice.C.

References DASH_LENGTH, FileRenderer::lineStyle, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, vec_normalize, and vec_sub.

int MayaDisplayDevice::open_file const char *    filename [virtual]
 

open the file; don't write the header info return TRUE if opened okay if file already opened, complain, and close previous file this will also reset the state variables.

Reimplemented from FileRenderer.

Definition at line 290 of file MayaDisplayDevice.C.

References close_file, FileRenderer::isOpened, FileRenderer::my_filename, NULL, FileRenderer::outfile, FileRenderer::reset_state, and stringdup.

void MayaDisplayDevice::point float *    spdata [protected, virtual]
 

draw an unlit point.

Reimplemented from FileRenderer.

Definition at line 54 of file MayaDisplayDevice.C.

References FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void MayaDisplayDevice::sphere float *    xyzr [protected, virtual]
 

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 66 of file MayaDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void MayaDisplayDevice::triangle const float *    v1,
const float *    v2,
const float *    v3,
const float *    n1,
const float *    n2,
const float *    n3
[protected, virtual]
 

single color triangle with interpolated surface normals.

Reimplemented from FileRenderer.

Definition at line 141 of file MayaDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void MayaDisplayDevice::write_header void    [virtual]
 

write the header info. This is an alias for prepare3D.

Reimplemented from FileRenderer.

Definition at line 319 of file MayaDisplayDevice.C.

References FileRenderer::outfile.

void MayaDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 410 of file MayaDisplayDevice.C.


The documentation for this class was generated from the following files:
Generated on Wed Apr 24 02:44:59 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002