ChildView.cpp File Reference

Implementation of the CChildView class. More...

#include "../common/standard.h"
#include "stdafx.h"
#include <windows.h>
#include <GL/glu.h>
#include "GLutils.h"
#include "Archimedes.h"
#include "MainFrm.h"
#include "ChildView.h"
#include "VoxelParamDialog.h"

Include dependency graph for ChildView.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define TRACKBALLSIZE   (0.6)
#define BIF_NEWDIALOGSTYLE   0x0040

Functions

BOOL InitPixelFormat (CDC *pDC)
 Calls SetPixelFormat for us, given a device context.

void getRotation (ColVector2d mouseOld, ColVector2d mouseNew, float &phi, ColVector3 &a)
 Find a good axis of rotation, given screen mouse coordinates. More...

void updateCallback (char *str, float pct, void *data)
bool getDirectoryNameFromDialog (HWND hwnd, const char *messageToDisplay, std::string &dirName)
 Fires up a directory-chooser dialog. More...


Detailed Description

Implementation of the CChildView class.

Definition in file ChildView.cpp.


Function Documentation

bool getDirectoryNameFromDialog HWND    hwnd,
const char *    messageToDisplay,
std::string &    dirName
 

Fires up a directory-chooser dialog.

Parameters:
messageToDisplay  A string to display at the top of the dialog.
dirName  An out parameter, with the full pathname of the directory selected.
Returns:
Whether the user selected a directory (they might have cancelled).

Definition at line 468 of file ChildView.cpp.

void getRotation ColVector2d    mouseOld,
ColVector2d    mouseNew,
float &    phi,
ColVector3 &    a
 

Find a good axis of rotation, given screen mouse coordinates.

This code is adapted from code by Gavin Bell, available in a number of places online, including:

http://pserver.samba.org/cgi-bin/cvsweb/3dttt/trackball.c?annotate=1.1&sortby=date

Definition at line 183 of file ChildView.cpp.


Generated on Tue May 21 03:34:53 2002 for Archimedes by doxygen1.2.15