20 void setHL(
const std::vector<Connection *> *);
24 void setLineWidth(
float w) { mLineWidth = w; }
25 float getLayerAlpha(uint z)
const {
return mLayerAlpha.at(z); }
26 void setLayerAlpha(uint z,
float a) { mLayerAlpha.at(z) = a; }
27 void setColorHL(
Color c);
28 bool allVisible()
const {
return mAllVisible; }
29 void setAllVisible(
bool b) { mAllVisible = b; }
33 float mLineWidth{1.0f};
34 GLfloat mColorVars[2][2][4];
35 bool mAllVisible{
true};
36 std::map<const Connection *, std::pair<uint16_t, uint16_t>> mConn2Index;
37 std::vector<uint16_t> mIndicesHL;
38 std::vector<const Connection *> mHLConns;
39 std::vector<float> mLayerAlpha;
44 static GLuint sVP, sFP, sPP;
45 static GLint sUniformColors;
48 float getLayerAlpha(
const Pin *)
const;
51 static void createShaders();