Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CFracWnd Class Reference

This is a derived CWnd class which is used to display the fractal image. More...

#include <FracWnd.h>

List of all members.

Public Methods

 CFracWnd ()
void set_image (FractalImage *)
virtual ~CFracWnd ()

Protected Methods

afx_msg void OnPaint ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnSize (UINT nType, int cx, int cy)

Private Methods

void update_bitmap (void)
void construct (CDC *p_dc, int width, int height)
 Creates a cached image of the given size (in pixels), for drawing into the given CDC.

void draw_cbitmap (CDC *p_dc, const CRect &image_rect_v, HBITMAP bitmap, DWORD rasterop)
 Draws the image into the given DC.

void zoom_in (const CRect &)
 Sets the view transform to show the given rectangle in window space (which has (0,0) at top left).


Private Attributes

FractalImagem_image
 Image being shown.

HBITMAP m_rgb_bitmap
 Offscreen image in which RGB pixel values are set.

CPoint m_mouse_down
CPoint m_mouse_curr
bool m_in_drag


Detailed Description

This is a derived CWnd class which is used to display the fractal image.

This window fills the entire client area of the frame window (CMainFrame).


Constructor & Destructor Documentation

CFracWnd::CFracWnd  
 

CFracWnd::~CFracWnd   [virtual]
 


Member Function Documentation

void CFracWnd::construct CDC *    p_dc,
int    width,
int    height
[private]
 

Creates a cached image of the given size (in pixels), for drawing into the given CDC.

void CFracWnd::draw_cbitmap CDC *    p_dc,
const CRect &    image_rect_v,
HBITMAP    bitmap,
DWORD    rasterop
[private]
 

Draws the image into the given DC.

Parameters:
image_rect_v  The rectangle into which the image should be fitted,

void CFracWnd::OnLButtonDown UINT    nFlags,
CPoint    point
[protected]
 

void CFracWnd::OnLButtonUp UINT    nFlags,
CPoint    point
[protected]
 

void CFracWnd::OnMouseMove UINT    nFlags,
CPoint    point
[protected]
 

void CFracWnd::OnPaint   [protected]
 

void CFracWnd::OnSize UINT    nType,
int    cx,
int    cy
[protected]
 

void CFracWnd::set_image FractalImage  
 

void CFracWnd::update_bitmap void    [private]
 

void CFracWnd::zoom_in const CRect &    zoom_rect [private]
 

Sets the view transform to show the given rectangle in window space (which has (0,0) at top left).


Member Data Documentation

FractalImage* CFracWnd::m_image [private]
 

Image being shown.

bool CFracWnd::m_in_drag [private]
 

CPoint CFracWnd::m_mouse_curr [private]
 

CPoint CFracWnd::m_mouse_down [private]
 

HBITMAP CFracWnd::m_rgb_bitmap [private]
 

Offscreen image in which RGB pixel values are set.


The documentation for this class was generated from the following files:
Generated on Sun Jul 21 11:52:17 2002 for FractalViewer by doxygen1.2.16