You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
#ifndef __glugridtrimvertex_h_
|
|
#define __glugridtrimvertex_h_
|
|
/**************************************************************************
|
|
* *
|
|
* Copyright (C) 1992, Silicon Graphics, Inc. *
|
|
* *
|
|
* These coded instructions, statements, and computer programs contain *
|
|
* unpublished proprietary information of Silicon Graphics, Inc., and *
|
|
* are protected by Federal copyright law. They may not be disclosed *
|
|
* to third parties or copied or duplicated in any form, in whole or *
|
|
* in part, without the prior written consent of Silicon Graphics, Inc. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
/*
|
|
* gridtrimvertex.h - $Revision: 1.1 $
|
|
*/
|
|
|
|
#include "mystdlib.h"
|
|
#include "bufpool.h"
|
|
#include "trimvert.h"
|
|
#include "gridvert.h"
|
|
|
|
class GridTrimVertex : public PooledObj
|
|
{
|
|
private:
|
|
TrimVertex dummyt;
|
|
GridVertex dummyg;
|
|
public:
|
|
GridTrimVertex() { g = 0; t = 0; }
|
|
TrimVertex *t;
|
|
GridVertex *g;
|
|
|
|
inline void set( long, long );
|
|
inline void set( REAL, REAL );
|
|
inline void set( TrimVertex * );
|
|
inline void clear( void ) { t = 0; g = 0; };
|
|
inline int isGridVert() { return g ? 1 : 0 ; }
|
|
inline int isTrimVert() { return t ? 1 : 0 ; }
|
|
inline void output();
|
|
};
|
|
|
|
inline void
|
|
GridTrimVertex::set( long x, long y )
|
|
{
|
|
g = &dummyg;
|
|
dummyg.gparam[0] = x;
|
|
dummyg.gparam[1] = y;
|
|
}
|
|
|
|
inline void
|
|
GridTrimVertex::set( REAL x, REAL y )
|
|
{
|
|
g = 0;
|
|
t = &dummyt;
|
|
dummyt.param[0] = x;
|
|
dummyt.param[1] = y;
|
|
dummyt.nuid = 0;
|
|
}
|
|
|
|
inline void
|
|
GridTrimVertex::set( TrimVertex *v )
|
|
{
|
|
g = 0;
|
|
t = v;
|
|
}
|
|
|
|
typedef GridTrimVertex *GridTrimVertex_p;
|
|
#endif /* __glugridtrimvertex_h_ */
|