Click here to Skip to main content
11,813,974 members (44,909 online)
Click here to Skip to main content
Articles » Multimedia » OpenGL » General » Downloads
Add your own
alternative version

StL Data File Viewer

, 5 Mar 2003 CPOL 253.5K 9.4K 49
A simple StereoLithography data file viewer.
// StLViewerDoc.h : interface of the CStLViewerDoc class

#if !defined(AFX_GLVIEWERDOC_H__D35F50D0_5C37_4ED2_900B_FE6F6FC29ED3__INCLUDED_)
#define AFX_GLVIEWERDOC_H__D35F50D0_5C37_4ED2_900B_FE6F6FC29ED3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "GLDisplayContext.h"

#include "StLReader.h"
#include "StlObject.h"

class CStLViewerDoc : public CDocument
protected: // create from serialization only

// Attributes
	CGLDisplayContext* GetContext() const { return dContext; }
	CGLDisplayContext* dContext;
	static const TCHAR m_szFilters[];

// Operations

// Overrides
	// ClassWizard generated virtual function overrides
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
	virtual ~CStLViewerDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;


// Generated message map functions
	afx_msg void OnReadstl();
	afx_msg void OnStlobjColor();
	afx_msg void OnStlobjMaterial();
	afx_msg void OnStlobjErase();
	afx_msg void OnStlobjDelete();
	afx_msg void OnScreenDisplayall();


// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_GLVIEWERDOC_H__D35F50D0_5C37_4ED2_900B_FE6F6FC29ED3__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Engineer Tata Technologies Ltd
India India
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151002.1 | Last Updated 6 Mar 2003
Article Copyright 2003 by Sharjith
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid