00001 // StreamlinePiece.h: interface for the CStreamlinePiece class. 00002 // 00004 00005 #if !defined(AFX_STREAMLINEPIECE_H__8627EC39_B147_44B2_8A8A_BAF990DF4FB2__INCLUDED_) 00006 #define AFX_STREAMLINEPIECE_H__8627EC39_B147_44B2_8A8A_BAF990DF4FB2__INCLUDED_ 00007 00008 #include "SamplePoint.h" 00009 #include "Streamline.h" 00010 #include "gl/gl.h" 00011 00012 #if _MSC_VER > 1000 00013 #pragma once 00014 #endif // _MSC_VER > 1000 00015 00017 00021 class CStreamlinePiece : public CObject 00022 { 00023 public: 00025 float CalcDifVLen(); 00027 float CalcDifOrient(); 00028 00030 CSamplePoint *m_EndPoint; 00032 CSamplePoint *m_StartPoint; 00034 CStreamline *m_Streamline; 00035 00037 int m_Index; 00038 00040 GLubyte m_Color[4]; 00041 00043 float m_LineWidth; 00044 00046 byte m_RegIndex; 00047 00049 bool m_IsDraw; 00050 00052 bool m_IsInside; 00053 00055 int m_ResIndex; 00056 00058 int m_EndTapIndex; 00059 00061 bool m_IsLineStart; 00062 00064 CStreamlinePiece(); 00065 00067 CStreamlinePiece(CSamplePoint *startPoint, CSamplePoint *endPoint, 00068 int index, CStreamline *streamline); 00069 00071 float GetStartPZPos(); 00073 float GetStartPYPos(); 00075 float GetStartPXPos(); 00076 00078 CStreamline *GetStreamline(); 00079 00080 virtual ~CStreamlinePiece(); 00081 }; 00082 00083 #endif // !defined(AFX_STREAMLINEPIECE_H__8627EC39_B147_44B2_8A8A_BAF990DF4FB2__INCLUDED_)