37#include <Inventor/errors/SoDebugError.h>
38#include <Inventor/misc/SoState.h>
39#include <Inventor/actions/SoGLRenderAction.h>
40#include <Inventor/nodes/SoPointSet.h>
42#include <Inventor/elements/SoCoordinateElement.h>
43#include <Inventor/elements/SoCacheElement.h>
44#include <Inventor/elements/SoLazyElement.h>
50static GLubyte*
getBitmap(
int,
int,
char []);
632 static bool first =
true;
657 SoGLRenderAction* aAction
662 SoState* state = aAction->getState();
664 const SoCoordinateElement* coordinateElement =
665 SoCoordinateElement::getInstance(state);
666 if(coordinateElement==NULL)
return;
668 if(aAction->isOfType(SoGL2PSAction::getClassTypeId())) {
669 SoCacheElement::invalidate(state);
672 const SbColor& color = SoLazyElement::getDiffuse(aAction->getState(),0);
673 float red,green,blue;
674 color.getValue(red,green,blue);
678 int starti = startIndex.getValue();
679 int pointn = numPoints.getValue();
682 glPushAttrib( (GLbitfield)(GL_CURRENT_BIT | GL_ENABLE_BIT));
683 glDisable(GL_LIGHTING);
684 glColor3f(red,green,blue);
688 glDisable(GL_DEPTH_TEST);
691 glPixelStorei(GL_UNPACK_ALIGNMENT,1);
692 for(pointi=starti;pointi<pointn;pointi++){
693 const SbVec3f& vec = coordinateElement->get3(pointi);
694 glRasterPos3f(vec[0],vec[1],vec[2]);
716 GLfloat xorig = 0,yorig = 0;
717 GLfloat xmove = 0,ymove = 0;
719 if((aStyle>=0)&&(aStyle<18)) {
723 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
725 }
else if((aStyle>=18)&&(aStyle<36)) {
729 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
731 }
else if((aStyle>=36)&&(aStyle<54)) {
735 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
741 if(aAction->isOfType(SoGL2PSAction::getClassTypeId())) {
742 ((
SoGL2PSAction*)aAction)->addBitmap(w,h,xorig,yorig,xmove,ymove);
756 GLubyte* bitmap =
new GLubyte[aW * aH + 1];
759 unsigned char byte = 0;
760 for (
int row = 0; row < aH; row++ ){
761 for (
int col = 0; col < aW; col++){
762 unsigned char c = aFigure[ichar];
767 byte += (1<<(7-ibit));
774 bitmap[index] = byte;
785 bitmap[index] = byte;
static char asterisk_7_7[]
static char square_filled_7_7[]
static char circle_filled_5_5[]
static char david_star_line_7_7[]
static char triangle_up_filled_7_7[]
static char triangle_up_line_5_5[]
static char square_filled_9_9[]
static char diamond_line_9_9[]
static char diamond_line_5_5[]
static char swiss_cross_filled_5_5[]
static char diamond_line_7_7[]
static char triangle_down_line_5_5[]
static char triangle_down_filled_7_7[]
static char asterisk_5_5[]
static char triangle_up_filled_5_5[]
static char david_star_filled_7_7[]
static char square_line_7_7[]
static char swiss_cross_filled_7_7[]
static char asterisk_9_9[]
static char plus_5_5[]
5 5 ///////////////////////////////////////////////////////
static char david_star_line_5_5[]
static char square_line_9_9[]
static char square_line_5_5[]
static void drawMarker(SoAction *, int)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static char triangle_up_filled_9_9[]
static char david_star_filled_5_5[]
static char triangle_down_filled_9_9[]
static char square_filled_5_5[]
static char circle_filled_7_7[]
static GLubyte * getBitmap(int, int, char[])
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
static char * sFigures[54]
static char diamond_filled_9_9[]
static char triangle_down_filled_5_5[]
static char plus_7_7[]
7 7 ///////////////////////////////////////////////////////
static char triangle_down_line_7_7[]
static char plus_9_9[]
9 9 ///////////////////////////////////////////////////////
static char david_star_filled_9_9[]
static char swiss_cross_line_9_9[]
static char triangle_up_line_9_9[]
static char swiss_cross_line_7_7[]
static char diamond_filled_5_5[]
static char swiss_cross_filled_9_9[]
static char circle_line_9_9[]
static char circle_line_5_5[]
static char triangle_down_line_9_9[]
static char swiss_cross_line_5_5[]
static char circle_filled_9_9[]
static char david_star_line_9_9[]
static char diamond_filled_7_7[]
static char circle_line_7_7[]
static char triangle_up_line_7_7[]
virtual ~HEPVis_SoMarkerSet()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
virtual void GLRender(SoGLRenderAction *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
HEPVis_SoMarkerSet()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//