g4tools  5.4.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tools::sg::gl2ps_action::primvis Class Reference
Inheritance diagram for tools::sg::gl2ps_action::primvis:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::gl2ps_action::primvis:
Collaboration graph
[legend]

Public Member Functions

 primvis (gl2ps_action &a_this)
 
virtual ~primvis ()
 
 primvis (const primvis &a_from)
 
primvisoperator= (const primvis &a_from)
 
- Public Member Functions inherited from tools::sg::primitive_visitor
 primitive_visitor ()
 
virtual ~primitive_visitor ()
 
 primitive_visitor (const primitive_visitor &)
 
primitive_visitoroperator= (const primitive_visitor &)
 
void add_one_point (float a_x, float a_y, float a_z)
 
void add_one_point (float a_x, float a_y, float a_z, float a_r, float a_g, float a_b, float a_a)
 
bool add_triangle_fan (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_triangle_fan_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_triangle_fan_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_triangle_strip (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_triangles (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_triangle_strip_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_triangle_strip_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_triangles_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_triangles_rgba (size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_triangles_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_line_strip (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_line_strip_rgba (size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_line_strip_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_line_strip_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_line_loop (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_line_loop_rgba (size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_line_loop_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_line_loop_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_lines (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_lines_rgba (size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_lines_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_lines_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_points (size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_points_rgba (size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_points_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_points_normal_rgba (size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_primitive (gl::mode_t a_mode, size_t a_floatn, const float *a_xyzs, bool a_stop=false)
 
bool add_primitive_rgba (gl::mode_t a_mode, size_t a_floatn, const float *a_xyzs, const float *a_rgbas, bool a_stop=false)
 
bool add_primitive_normal (gl::mode_t a_mode, size_t a_floatn, const float *a_xyzs, const float *a_nms, bool a_stop=false)
 
bool add_primitive_normal_rgba (gl::mode_t a_mode, size_t a_floatn, const float *a_xyzs, const float *a_nms, const float *a_rgbas, bool a_stop=false)
 
bool add_points_xy (size_t a_floatn, const float *a_xys, bool a_stop=false)
 points with x,y only /////////////////////////////// More...
 
bool add_triangle_fan_xy (size_t a_floatn, const float *a_xys, bool a_stop=false, bool a_triangle_revert=false)
 
bool add_triangle_strip_xy (size_t a_floatn, const float *a_xys, bool a_stop=false, bool a_triangle_revert=false)
 
bool add_triangles_xy (size_t a_floatn, const float *a_xys, bool a_stop=false, bool a_triangle_revert=false)
 
bool add_line_loop_xy (size_t a_floatn, const float *a_xys, bool a_stop=false)
 
bool add_line_strip_xy (size_t a_floatn, const float *a_xys, bool a_stop=false)
 
bool add_lines_xy (size_t a_floatn, const float *a_xys, bool a_stop=false)
 
bool add_primitive_xy (gl::mode_t a_mode, size_t a_floatn, const float *a_xys, bool a_stop=false, bool a_triangle_revert=false)
 
bool add_primitive (gl::mode_t a_mode, const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_primitive_xy (gl::mode_t a_mode, const std::vector< float > &a_xys, bool a_stop=false, bool a_triangle_revert=false)
 
bool add_line_strip (const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_line_loop (const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_lines (const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_points (const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_triangle_strip (const std::vector< float > &a_xyzs, bool a_stop=false)
 
bool add_points_xy (const std::vector< float > &a_xys, bool a_stop=false)
 
bool add_lines_xy (const std::vector< float > &a_xys, bool a_stop=false)
 
bool add_triangle_strip_xy (const std::vector< float > &a_xys, bool a_stop=false)
 
bool add_triangle_fan_texture_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, unsigned int, const float *)
 
bool add_triangle_strip_texture_normal (size_t a_floatn, const float *a_xyzs, const float *a_nms, unsigned int, const float *)
 
bool add_triangle_strip_as_triangles (size_t a_floatn, const float *a_xyzs, const float *a_nms)
 
void add_texture (std::ostream &a_out, size_t a_xyzn, const float *a_xyzs, const img_byte &a_img, const float *a_tcs)
 

Protected Member Functions

virtual bool project (float &a_x, float &a_y, float &a_z, float &a_w)
 
virtual bool add_point (float a_x, float a_y, float a_z, float)
 
virtual bool add_point (float a_x, float a_y, float a_z, float, float a_r, float a_g, float a_b, float a_a)
 
virtual bool add_line (float a_bx, float a_by, float a_bz, float, float a_ex, float a_ey, float a_ez, float)
 
virtual bool add_line (float a_bx, float a_by, float a_bz, float, float a_br, float a_bg, float a_bb, float a_ba, float a_ex, float a_ey, float a_ez, float, float a_er, float a_eg, float a_eb, float a_ea)
 
virtual bool add_triangle (float a_p1x, float a_p1y, float a_p1z, float, float a_p2x, float a_p2y, float a_p2z, float, float a_p3x, float a_p3y, float a_p3z, float)
 
virtual bool add_triangle (float a_p1x, float a_p1y, float a_p1z, float, float a_r1, float a_g1, float a_b1, float a_a1, float a_p2x, float a_p2y, float a_p2z, float, float a_r2, float a_g2, float a_b2, float a_a2, float a_p3x, float a_p3y, float a_p3z, float, float a_r3, float a_g3, float a_b3, float a_a3)
 
virtual bool project_normal (float &, float &, float &)
 
virtual bool add_point_normal (float a_x, float a_y, float a_z, float a_w, float, float, float)
 
virtual bool add_point_normal (float a_x, float a_y, float a_z, float a_w, float, float, float, float a_r, float a_g, float a_b, float a_a)
 
virtual bool add_line_normal (float a_bx, float a_by, float a_bz, float a_bw, float, float, float, float a_ex, float a_ey, float a_ez, float a_ew, float, float, float)
 
virtual bool add_line_normal (float a_bx, float a_by, float a_bz, float a_bw, float, float, float, float a_br, float a_bg, float a_bb, float a_ba, float a_ex, float a_ey, float a_ez, float a_ew, float, float, float, float a_er, float a_eg, float a_eb, float a_ea)
 
virtual bool add_triangle_normal (float a_p1x, float a_p1y, float a_p1z, float a_p1w, float, float, float, float a_p2x, float a_p2y, float a_p2z, float a_p2w, float, float, float, float a_p3x, float a_p3y, float a_p3z, float a_p3w, float, float, float)
 
virtual bool add_triangle_normal (float a_p1x, float a_p1y, float a_p1z, float a_p1w, float, float, float, float a_r1, float a_g1, float a_b1, float a_a1, float a_p2x, float a_p2y, float a_p2z, float a_p2w, float, float, float, float a_r2, float a_g2, float a_b2, float a_a2, float a_p3x, float a_p3y, float a_p3z, float a_p3w, float, float, float, float a_r3, float a_g3, float a_b3, float a_a3)
 

Protected Attributes

gl2ps_actionm_this
 
- Protected Attributes inherited from tools::sg::primitive_visitor
gl::mode_t m_mode
 

Detailed Description

Definition at line 346 of file gl2ps_action.

Constructor & Destructor Documentation

◆ primvis() [1/2]

tools::sg::gl2ps_action::primvis::primvis ( gl2ps_action a_this)
inline

Definition at line 602 of file gl2ps_action.

602 :m_this(a_this){}

◆ ~primvis()

virtual tools::sg::gl2ps_action::primvis::~primvis ( )
inlinevirtual

Definition at line 603 of file gl2ps_action.

603 {}

◆ primvis() [2/2]

tools::sg::gl2ps_action::primvis::primvis ( const primvis a_from)
inline

Definition at line 605 of file gl2ps_action.

606  :primitive_visitor(a_from)
607  ,m_this(a_from.m_this)
608  {}

Member Function Documentation

◆ add_line() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_line ( float  a_bx,
float  a_by,
float  a_bz,
float  ,
float  a_br,
float  a_bg,
float  a_bb,
float  a_ba,
float  a_ex,
float  a_ey,
float  a_ez,
float  ,
float  a_er,
float  a_eg,
float  a_eb,
float  a_ea 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 431 of file gl2ps_action.

434  {
435 
436  tools_GLint offset = 0;
437  tools_GLfloat ofactor = 0; //
438  tools_GLfloat ounits = 0; //
439  tools_GLushort pattern = 0;
440  tools_GLint factor = 0;
442  tools_GLint linecap = 0; //
443  tools_GLint linejoin = 0; //
444  char boundary = 0; //
445 
446  tools_GL2PSvertex vertices[2];
447 
448  m_this.m_vp_mtx.mul_3f(a_bx,a_by,a_bz);
449  m_this.m_vp_mtx.mul_3f(a_ex,a_ey,a_ez);
450 
451  m_this.set_vtx(vertices,0, a_bx,a_by,a_bz, a_br,a_bg,a_bb,a_ba);
452  m_this.set_vtx(vertices,1, a_ex,a_ey,a_ez, a_er,a_eg,a_eb,a_ea);
453 
454  //tools_gl2psAddPolyPrimitive(_GL2PS_LINE(),2,vertices,0,pattern,factor,lwidth,0);
455  ::tools_gl2psAddPolyPrimitive(_GL2PS_LINE(),2,vertices,offset,ofactor,ounits,pattern,factor,lwidth,linecap,linejoin,boundary);
456 
457  return true;
458  }

◆ add_line() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_line ( float  a_bx,
float  a_by,
float  a_bz,
float  ,
float  a_ex,
float  a_ey,
float  a_ez,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 400 of file gl2ps_action.

401  {
402  float r = m_this.m_color[0];
403  float g = m_this.m_color[1];
404  float b = m_this.m_color[2];
405  float a = m_this.m_color[3];
406 
407  tools_GLint offset = 0;
408  tools_GLfloat ofactor = 0; //
409  tools_GLfloat ounits = 0; //
410  tools_GLushort pattern = 0;
411  tools_GLint factor = 0;
413  tools_GLint linecap = 0; //
414  tools_GLint linejoin = 0; //
415  char boundary = 0; //
416 
417  tools_GL2PSvertex vertices[2];
418 
419  m_this.m_vp_mtx.mul_3f(a_bx,a_by,a_bz);
420  m_this.m_vp_mtx.mul_3f(a_ex,a_ey,a_ez);
421 
422  m_this.set_vtx(vertices,0, a_bx,a_by,a_bz, r,g,b,a);
423  m_this.set_vtx(vertices,1, a_ex,a_ey,a_ez, r,g,b,a);
424 
425  //::tools_gl2psAddPolyPrimitive(_GL2PS_LINE(),2,vertices,0,pattern,factor,lwidth,0);
426  ::tools_gl2psAddPolyPrimitive(_GL2PS_LINE(),2,vertices,offset,ofactor,ounits,pattern,factor,lwidth,linecap,linejoin,boundary);
427 
428  return true;
429  }

◆ add_line_normal() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_line_normal ( float  a_bx,
float  a_by,
float  a_bz,
float  a_bw,
float  ,
float  ,
float  ,
float  a_br,
float  a_bg,
float  a_bb,
float  a_ba,
float  a_ex,
float  a_ey,
float  a_ez,
float  a_ew,
float  ,
float  ,
float  ,
float  a_er,
float  a_eg,
float  a_eb,
float  a_ea 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 554 of file gl2ps_action.

559  {
560  add_line(a_bx,a_by,a_bz,a_bw, a_br,a_bg,a_bb,a_ba, a_ex,a_ey,a_ez,a_ew, a_er,a_eg,a_eb,a_ea);
561  //m_this.m_lines.add_normal(a_bnx,a_bny,a_bnz);
562  //m_this.m_lines.add_normal(a_enx,a_eny,a_enz);
563  return true;
564  }

◆ add_line_normal() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_line_normal ( float  a_bx,
float  a_by,
float  a_bz,
float  a_bw,
float  ,
float  ,
float  ,
float  a_ex,
float  a_ey,
float  a_ez,
float  a_ew,
float  ,
float  ,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 545 of file gl2ps_action.

548  {
549  add_line(a_bx,a_by,a_bz,a_bw, a_ex,a_ey,a_ez,a_ew);
550  //m_this.m_lines.add_normal(a_bnx,a_bny,a_bnz);
551  //m_this.m_lines.add_normal(a_enx,a_eny,a_enz);
552  return true;
553  }

◆ add_point() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_point ( float  a_x,
float  a_y,
float  a_z,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 351 of file gl2ps_action.

351  {
352  float r = m_this.m_color[0];
353  float g = m_this.m_color[1];
354  float b = m_this.m_color[2];
355  float a = m_this.m_color[3];
356 
357  tools_GLint offset = 0;
358  tools_GLfloat ofactor = 0; //
359  tools_GLfloat ounits = 0; //
360  tools_GLushort pattern = 0;
361  tools_GLint factor = 0;
363  tools_GLint linecap = 0; //
364  tools_GLint linejoin = 0; //
365  char boundary = 0; //
366 
367  tools_GL2PSvertex vertices[1];
368 
369  m_this.m_vp_mtx.mul_3f(a_x,a_y,a_z);
370 
371  m_this.set_vtx(vertices,0, a_x,a_y,a_z, r,g,b,a);
372 
373  ::tools_gl2psAddPolyPrimitive(_GL2PS_POINT(),1,vertices,offset,ofactor,ounits,pattern,factor,sz,linecap,linejoin,boundary);
374  return true;
375  }

◆ add_point() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_point ( float  a_x,
float  a_y,
float  a_z,
float  ,
float  a_r,
float  a_g,
float  a_b,
float  a_a 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 377 of file gl2ps_action.

378  {
379  tools_GLint offset = 0;
380  tools_GLfloat ofactor = 0; //
381  tools_GLfloat ounits = 0; //
382  tools_GLushort pattern = 0;
383  tools_GLint factor = 0;
385  tools_GLint linecap = 0; //
386  tools_GLint linejoin = 0; //
387  char boundary = 0; //
388 
389  tools_GL2PSvertex vertices[1];
390 
391  m_this.m_vp_mtx.mul_3f(a_x,a_y,a_z);
392 
393  m_this.set_vtx(vertices,0, a_x,a_y,a_z, a_r,a_g,a_b,a_a);
394 
395  //::tools_gl2psAddPolyPrimitive(_GL2PS_POINT(),1,vertices,0,pattern,factor,sz,0);
396  ::tools_gl2psAddPolyPrimitive(_GL2PS_POINT(),1,vertices,offset,ofactor,ounits,pattern,factor,sz,linecap,linejoin,boundary);
397  return true;
398  }

◆ add_point_normal() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_point_normal ( float  a_x,
float  a_y,
float  a_z,
float  a_w,
float  ,
float  ,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 532 of file gl2ps_action.

533  {
534  add_point(a_x,a_y,a_z,a_w);
535  //m_this.m_points.add_normal(a_nx,a_ny,a_nz);
536  return true;
537  }

◆ add_point_normal() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_point_normal ( float  a_x,
float  a_y,
float  a_z,
float  a_w,
float  ,
float  ,
float  ,
float  a_r,
float  a_g,
float  a_b,
float  a_a 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 538 of file gl2ps_action.

540  {
541  add_point(a_x,a_y,a_z,a_w,a_r,a_g,a_b,a_a);
542  //m_this.m_points.add_normal(a_nx,a_ny,a_nz);
543  return true;
544  }

◆ add_triangle() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_triangle ( float  a_p1x,
float  a_p1y,
float  a_p1z,
float  ,
float  a_p2x,
float  a_p2y,
float  a_p2z,
float  ,
float  a_p3x,
float  a_p3y,
float  a_p3z,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 460 of file gl2ps_action.

462  {
463  float r = m_this.m_color[0];
464  float g = m_this.m_color[1];
465  float b = m_this.m_color[2];
466  float a = m_this.m_color[3];
467 
468  tools_GLint offset = 0;
469  tools_GLfloat ofactor = 0; //
470  tools_GLfloat ounits = 0; //
471  tools_GLushort pattern = 0;
472  tools_GLint factor = 0;
474  tools_GLint linecap = 0; //
475  tools_GLint linejoin = 0; //
476  char boundary = 0; //
477 
478  tools_GL2PSvertex vertices[3];
479 
480  m_this.m_vp_mtx.mul_3f(a_p1x,a_p1y,a_p1z);
481  m_this.m_vp_mtx.mul_3f(a_p2x,a_p2y,a_p2z);
482  m_this.m_vp_mtx.mul_3f(a_p3x,a_p3y,a_p3z);
483 
484  m_this.set_vtx(vertices,0, a_p1x,a_p1y,a_p1z, r,g,b,a);
485  m_this.set_vtx(vertices,1, a_p2x,a_p2y,a_p2z, r,g,b,a);
486  m_this.set_vtx(vertices,2, a_p3x,a_p3y,a_p3z, r,g,b,a);
487 
488  //tools_gl2psAddPolyPrimitive(_GL2PS_TRIANGLE(),3,vertices,0,pattern,factor,lwidth,0);
489  ::tools_gl2psAddPolyPrimitive(_GL2PS_TRIANGLE(),3,vertices,offset,ofactor,ounits,pattern,factor,lwidth,linecap,linejoin,boundary);
490 
491  return true;
492  }

◆ add_triangle() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_triangle ( float  a_p1x,
float  a_p1y,
float  a_p1z,
float  ,
float  a_r1,
float  a_g1,
float  a_b1,
float  a_a1,
float  a_p2x,
float  a_p2y,
float  a_p2z,
float  ,
float  a_r2,
float  a_g2,
float  a_b2,
float  a_a2,
float  a_p3x,
float  a_p3y,
float  a_p3z,
float  ,
float  a_r3,
float  a_g3,
float  a_b3,
float  a_a3 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 494 of file gl2ps_action.

500  {
501 
502  tools_GLint offset = 0;
503  tools_GLfloat ofactor = 0; //
504  tools_GLfloat ounits = 0; //
505  tools_GLushort pattern = 0;
506  tools_GLint factor = 0;
508  tools_GLint linecap = 0; //
509  tools_GLint linejoin = 0; //
510  char boundary = 0; //
511 
512  tools_GL2PSvertex vertices[3];
513 
514  m_this.m_vp_mtx.mul_3f(a_p1x,a_p1y,a_p1z);
515  m_this.m_vp_mtx.mul_3f(a_p2x,a_p2y,a_p2z);
516  m_this.m_vp_mtx.mul_3f(a_p3x,a_p3y,a_p3z);
517 
518  m_this.set_vtx(vertices,0, a_p1x,a_p1y,a_p1z, a_r1,a_g1,a_b1,a_a1);
519  m_this.set_vtx(vertices,1, a_p2x,a_p2y,a_p2z, a_r2,a_g2,a_b2,a_a2);
520  m_this.set_vtx(vertices,2, a_p3x,a_p3y,a_p3z, a_r3,a_g3,a_b3,a_a3);
521 
522  //tools_gl2psAddPolyPrimitive(_GL2PS_TRIANGLE(),3,vertices,0,pattern,factor,lwidth,0);
523  ::tools_gl2psAddPolyPrimitive(_GL2PS_TRIANGLE(),3,vertices,offset,ofactor,ounits,pattern,factor,lwidth,linecap,linejoin,boundary);
524 
525  return true;
526  }

◆ add_triangle_normal() [1/2]

virtual bool tools::sg::gl2ps_action::primvis::add_triangle_normal ( float  a_p1x,
float  a_p1y,
float  a_p1z,
float  a_p1w,
float  ,
float  ,
float  ,
float  a_p2x,
float  a_p2y,
float  a_p2z,
float  a_p2w,
float  ,
float  ,
float  ,
float  a_p3x,
float  a_p3y,
float  a_p3z,
float  a_p3w,
float  ,
float  ,
float   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 565 of file gl2ps_action.

571  {
572  add_triangle(a_p1x,a_p1y,a_p1z,a_p1w,
573  a_p2x,a_p2y,a_p2z,a_p2w,
574  a_p3x,a_p3y,a_p3z,a_p3w);
575  //m_this.m_triangles.add_normal(a_n1x,a_n1y,a_n1z);
576  //m_this.m_triangles.add_normal(a_n2x,a_n2y,a_n2z);
577  //m_this.m_triangles.add_normal(a_n3x,a_n3y,a_n3z);
578  return true;
579  }

◆ add_triangle_normal() [2/2]

virtual bool tools::sg::gl2ps_action::primvis::add_triangle_normal ( float  a_p1x,
float  a_p1y,
float  a_p1z,
float  a_p1w,
float  ,
float  ,
float  ,
float  a_r1,
float  a_g1,
float  a_b1,
float  a_a1,
float  a_p2x,
float  a_p2y,
float  a_p2z,
float  a_p2w,
float  ,
float  ,
float  ,
float  a_r2,
float  a_g2,
float  a_b2,
float  a_a2,
float  a_p3x,
float  a_p3y,
float  a_p3z,
float  a_p3w,
float  ,
float  ,
float  ,
float  a_r3,
float  a_g3,
float  a_b3,
float  a_a3 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 580 of file gl2ps_action.

589  {
590  add_triangle(a_p1x,a_p1y,a_p1z,a_p1w,
591  a_r1,a_g1,a_b1,a_a1,
592  a_p2x,a_p2y,a_p2z,a_p2w,
593  a_r2,a_g2,a_b2,a_a2,
594  a_p3x,a_p3y,a_p3z,a_p3w,
595  a_r3,a_g3,a_b3,a_a3);
596  //m_this.m_triangles.add_normal(a_n1x,a_n1y,a_n1z);
597  //m_this.m_triangles.add_normal(a_n2x,a_n2y,a_n2z);
598  //m_this.m_triangles.add_normal(a_n3x,a_n3y,a_n3z);
599  return true;
600  }

◆ operator=()

primvis& tools::sg::gl2ps_action::primvis::operator= ( const primvis a_from)
inline

Definition at line 609 of file gl2ps_action.

609  {
611  return *this;
612  }

◆ project()

virtual bool tools::sg::gl2ps_action::primvis::project ( float &  a_x,
float &  a_y,
float &  a_z,
float &  a_w 
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 348 of file gl2ps_action.

348  {
349  return m_this.project_point(a_x,a_y,a_z,a_w);
350  }

◆ project_normal()

virtual bool tools::sg::gl2ps_action::primvis::project_normal ( float &  ,
float &  ,
float &   
)
inlineprotectedvirtual

Implements tools::sg::primitive_visitor.

Definition at line 528 of file gl2ps_action.

528  {
529  //return m_this.project_normal(a_x,a_y,a_z);
530  return true;
531  }

Member Data Documentation

◆ m_this

gl2ps_action& tools::sg::gl2ps_action::primvis::m_this
protected

Definition at line 614 of file gl2ps_action.


The documentation for this class was generated from the following file:
tools::sg::gl2ps_action::m_vp_mtx
mat4f m_vp_mtx
Definition: gl2ps_action:621
tools::mat4f::mul_3f
void mul_3f(float &a_x, float &a_y, float &a_z) const
Definition: mat4f:58
tools::sg::gl2ps_action::primvis::add_line
virtual bool add_line(float a_bx, float a_by, float a_bz, float, float a_ex, float a_ey, float a_ez, float)
Definition: gl2ps_action:400
tools::sg::gl2ps_action::m_line_width
float m_line_width
Definition: gl2ps_action:639
tools::sg::gl2ps_action::m_point_size
float m_point_size
Definition: gl2ps_action:638
tools_GL2PSvertex
Definition: gl2ps_def.h:112
tools_GLfloat
float tools_GLfloat
Definition: gl2ps_def.h:9
tools::sg::primitive_visitor::operator=
primitive_visitor & operator=(const primitive_visitor &)
Definition: primitive_visitor:61
tools::sg::gl2ps_action::m_color
colorf m_color
Definition: gl2ps_action:632
tools::sg::gl2ps_action::primvis::add_triangle
virtual bool add_triangle(float a_p1x, float a_p1y, float a_p1z, float, float a_p2x, float a_p2y, float a_p2z, float, float a_p3x, float a_p3y, float a_p3z, float)
Definition: gl2ps_action:460
tools::sg::gl2ps_action::primvis::m_this
gl2ps_action & m_this
Definition: gl2ps_action:614
tools::sg::gl2ps_action::primvis::add_point
virtual bool add_point(float a_x, float a_y, float a_z, float)
Definition: gl2ps_action:351
tools::sg::gl2ps_action::project_point
bool project_point(float &a_x, float &a_y, float &a_z, float &a_w)
Definition: gl2ps_action:318
tools_GLushort
unsigned short tools_GLushort
Definition: gl2ps_def.h:12
tools::sg::gl2ps_action::set_vtx
static void set_vtx(tools_GL2PSvertex *a_vs, unsigned int a_index, float a_x, float a_y, float a_z, float a_r, float a_g, float a_b, float a_a)
Definition: gl2ps_action:334
tools_GLint
int tools_GLint
Definition: gl2ps_def.h:7
tools_gl2psAddPolyPrimitive
TOOLS_GL2PSDLL_API void tools_gl2psAddPolyPrimitive(tools_GLshort type, tools_GLshort numverts, tools_GL2PSvertex *verts, tools_GLint offset, tools_GLfloat ofactor, tools_GLfloat ounits, tools_GLushort pattern, tools_GLint factor, tools_GLfloat width, tools_GLint linecap, tools_GLint linejoin, char boundary)
Definition: gl2ps:2231
tools::sg::primitive_visitor::primitive_visitor
primitive_visitor()
Definition: primitive_visitor:57