Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
3dPageScale.cpp
Package: gloop.zip [view]
Upload User: shxiangxiu
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 3k
Category:
OpenGL program
Development Platform:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dPageScale.cpp : implementation file
- //
- // glOOP (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1998
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- // This program is -not- in the public domain.
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "glOOP.h"
- #include "3dObjectDialog.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char BASED_CODE THIS_FILE[] = __FILE__;
- #endif
- //////////////////////////////////////////////////////////////////
- // C3dPageScale
- IMPLEMENT_DYNCREATE(C3dPageScale, CPropertyPage)
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageScale dialog construction
- C3dPageScale::C3dPageScale()
- : CPropertyPage(C3dPageScale::IDD)
- {
- //{{AFX_DATA_INIT(C3dPageScale)
- m_fScaleX = 0.0f;
- m_fScaleY = 0.0f;
- m_fScaleZ = 0.0f;
- //}}AFX_DATA_INIT
- }
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageScale Destructor
- C3dPageScale::~C3dPageScale()
- {
- }
- void C3dPageScale::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(C3dPageScale)
- DDX_Text(pDX, IDC_X_AXIS, m_fScaleX);
- DDX_Text(pDX, IDC_Y_AXIS, m_fScaleY);
- DDX_Text(pDX, IDC_Z_AXIS, m_fScaleZ);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(C3dPageScale, CPropertyPage)
- //{{AFX_MSG_MAP(C3dPageScale)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageScale message handlers
- BOOL C3dPageScale::OnInitDialog()
- {
- // Set our local values to the Objects' values
- m_fScaleX = m_pObject->m_fScale[0];
- m_fScaleY = m_pObject->m_fScale[1];
- m_fScaleZ = m_pObject->m_fScale[2];
- CPropertyPage::OnInitDialog(); // let the base class do the default work
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void C3dPageScale::OnOK()
- {
- // Dialog box is being initialized (FALSE)
- // or data is being retrieved (TRUE).
- UpdateData(TRUE);
- // Set the Objects Scale..
- m_pObject->m_fScale[0] = m_fScaleX;
- m_pObject->m_fScale[1] = m_fScaleY;
- m_pObject->m_fScale[2] = m_fScaleZ;
- // Force the object to rebuild its' display list
- m_pObject->m_bBuildLists = TRUE;
- CPropertyPage::OnOK();
- }