Ignore:
Timestamp:
Jun 17, 2013, 1:48:27 AM (11 years ago)
Author:
ldelgass
Message:

Use imroved Arc API (arc can only represent a circular section, and setting
two endpoints could cause problems with endpts and center colinear and radii
from center to two endpoints differing). New API uses a center, start point,
normal and sweep angle. Also change Line to support polylines: protocol is
changed to require a Tcl list for point coordinates instead of a fixed 2
endpoints.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/vtkvis/Renderer.h

    r3695 r3696  
    577577    // Arcs
    578578
    579     bool addArc(const DataSetId& id, double center[3], double pt1[3], double pt2[3]);
     579    bool addArc(const DataSetId& id, double center[3], double pt1[3],
     580                double normal[3], double angle);
    580581
    581582    void setArcResolution(const DataSetId& id, int res);
     
    583584    // Arrows
    584585
    585     bool addArrow(const DataSetId& id, double tipRadius, double shaftRadius, double tipLength, bool flipNormals = false);
     586    bool addArrow(const DataSetId& id, double tipRadius, double shaftRadius,
     587                  double tipLength, bool flipNormals = false);
    586588
    587589    void setArrowResolution(const DataSetId& id, int resTip, int resShaft);
     
    589591    // Boxes
    590592
    591     bool addBox(const DataSetId& id, double xLen, double yLen, double zLen, bool flipNormals = false);
     593    bool addBox(const DataSetId& id, double xLen, double yLen, double zLen,
     594                bool flipNormals = false);
    592595
    593596    // Cones
    594597
    595     bool addCone(const DataSetId& id, double radius, double height, bool cap, bool flipNormals = false);
     598    bool addCone(const DataSetId& id, double radius, double height, bool cap,
     599                 bool flipNormals = false);
    596600
    597601    void setConeResolution(const DataSetId& id, int res);
     
    741745
    742746    bool addLine(const DataSetId& id, double pt1[3], double pt2[3]);
     747
     748    bool addLine(const DataSetId& id, std::vector<double> points);
    743749
    744750    // Molecules
Note: See TracChangeset for help on using the changeset viewer.