PickAttributes.C 96.4 KB
Newer Older
hrchilds's avatar
hrchilds committed
1 2 3
#include <PickAttributes.h>
#include <DataNode.h>
#include <stdio.h>
hrchilds's avatar
hrchilds committed
4
#include <float.h>
hrchilds's avatar
hrchilds committed
5 6
#include <PickVarInfo.h>

hrchilds's avatar
hrchilds committed
7 8 9 10 11
//
// Enum conversion methods for PickAttributes::PickType
//

static const char *PickType_strings[] = {
hrchilds's avatar
hrchilds committed
12
"Zone", "Node", "CurveZone", 
hrchilds's avatar
hrchilds committed
13 14
"CurveNode", "DomainZone", "DomainNode"
};
hrchilds's avatar
hrchilds committed
15 16 17 18

std::string
PickAttributes::PickType_ToString(PickAttributes::PickType t)
{
hrchilds's avatar
hrchilds committed
19
    int index = int(t);
hrchilds's avatar
hrchilds committed
20
    if(index < 0 || index >= 6) index = 0;
hrchilds's avatar
hrchilds committed
21
    return PickType_strings[index];
hrchilds's avatar
hrchilds committed
22 23 24 25 26
}

std::string
PickAttributes::PickType_ToString(int t)
{
hrchilds's avatar
hrchilds committed
27
    int index = (t < 0 || t >= 6) ? 0 : t;
hrchilds's avatar
hrchilds committed
28
    return PickType_strings[index];
hrchilds's avatar
hrchilds committed
29 30 31 32 33
}

bool
PickAttributes::PickType_FromString(const std::string &s, PickAttributes::PickType &val)
{
hrchilds's avatar
hrchilds committed
34
    val = PickAttributes::Zone;
hrchilds's avatar
hrchilds committed
35
    for(int i = 0; i < 6; ++i)
hrchilds's avatar
hrchilds committed
36 37 38 39 40 41 42 43 44 45
    {
        if(s == PickType_strings[i])
        {
            val = (PickType)i;
            return true;
        }
    }
    return false;
}

hrchilds's avatar
hrchilds committed
46 47 48 49 50 51 52 53 54
// ****************************************************************************
// Method: PickAttributes::PickAttributes
//
// Purpose: 
//   Constructor for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
55
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
56 57 58 59 60
//
// Modifications:
//   
// ****************************************************************************

hrchilds's avatar
hrchilds committed
61
PickAttributes::PickAttributes() : AttributeSubject("s*bbbbbbbbbsbiiii*iissFFFFFFsii*s*s*s*s*s*ba*s*bsbbbbbbssi*bbbbbii*bbiibi")
hrchilds's avatar
hrchilds committed
62
{
hrchilds's avatar
hrchilds committed
63 64 65 66 67 68 69 70 71
    variables.push_back("default");
    displayIncidentElements = true;
    showNodeId = true;
    showNodeDomainLogicalCoords = false;
    showNodeBlockLogicalCoords = false;
    showNodePhysicalCoords = false;
    showZoneId = true;
    showZoneDomainLogicalCoords = false;
    showZoneBlockLogicalCoords = false;
hrchilds's avatar
hrchilds committed
72 73
    clearWindow = false;
    fulfilled = false;
hrchilds's avatar
hrchilds committed
74 75
    pickType = Zone;
    domain = -1;
hrchilds's avatar
hrchilds committed
76
    elementNumber = -1;
hrchilds's avatar
hrchilds committed
77 78 79 80 81 82 83 84
    timeStep = -1;
    dimension = -1;
    pickPoint[0] = 0;
    pickPoint[1] = 0;
    pickPoint[2] = 0;
    cellPoint[0] = 0;
    cellPoint[1] = 0;
    cellPoint[2] = 0;
hrchilds's avatar
hrchilds committed
85 86 87
    nodePoint[0] = 0;
    nodePoint[1] = 0;
    nodePoint[2] = 0;
hrchilds's avatar
hrchilds committed
88 89 90 91 92 93
    plotBounds[0] = 0;
    plotBounds[1] = 0;
    plotBounds[2] = 0;
    plotBounds[3] = 0;
    plotBounds[4] = 0;
    plotBounds[5] = 0;
hrchilds's avatar
hrchilds committed
94 95 96 97 98 99 100 101
    rayPoint1[0] = 0;
    rayPoint1[1] = 0;
    rayPoint1[2] = 0;
    rayPoint2[0] = 0;
    rayPoint2[1] = 0;
    rayPoint2[2] = 0;
    realElementNumber = -1;
    needTransformMessage = false;
hrchilds's avatar
hrchilds committed
102
    doTimeCurve = false;
hrchilds's avatar
hrchilds committed
103
    error = false;
hrchilds's avatar
hrchilds committed
104 105
    matSelected = false;
    needActualCoords = false;
hrchilds's avatar
hrchilds committed
106 107 108
    conciseOutput = false;
    showTimeStep = true;
    showMeshName = true;
hrchilds's avatar
hrchilds committed
109 110
    includeGhosts = false;
    elementIsGhost = false;
hrchilds's avatar
hrchilds committed
111
    requiresGlyphPick = false;
hrchilds's avatar
hrchilds committed
112
    locationSuccessful = false;
hrchilds's avatar
hrchilds committed
113 114
    displayGlobalIds = false;
    globalElement = -1;
hrchilds's avatar
hrchilds committed
115
    elementIsGlobal = false;
hrchilds's avatar
hrchilds committed
116
    displayPickLetter = true;
hrchilds's avatar
hrchilds committed
117
    ghostType = 0;
hrchilds's avatar
hrchilds committed
118
    hasMixedGhostTypes = -1;
hrchilds's avatar
hrchilds committed
119 120
    linesData = false;
    inputTopoDim = -1;
hrchilds's avatar
hrchilds committed
121 122 123 124 125 126 127 128 129 130 131
}

// ****************************************************************************
// Method: PickAttributes::PickAttributes
//
// Purpose: 
//   Copy constructor for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
132
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
133 134 135 136 137
//
// Modifications:
//   
// ****************************************************************************

hrchilds's avatar
hrchilds committed
138
PickAttributes::PickAttributes(const PickAttributes &obj) : AttributeSubject("s*bbbbbbbbbsbiiii*iissFFFFFFsii*s*s*s*s*s*ba*s*bsbbbbbbssi*bbbbbii*bbiibi")
hrchilds's avatar
hrchilds committed
139 140
{
    AttributeGroupVector::const_iterator pos;
hrchilds's avatar
hrchilds committed
141
    int i;
hrchilds's avatar
hrchilds committed
142

hrchilds's avatar
hrchilds committed
143 144 145 146 147 148 149 150 151
    variables = obj.variables;
    displayIncidentElements = obj.displayIncidentElements;
    showNodeId = obj.showNodeId;
    showNodeDomainLogicalCoords = obj.showNodeDomainLogicalCoords;
    showNodeBlockLogicalCoords = obj.showNodeBlockLogicalCoords;
    showNodePhysicalCoords = obj.showNodePhysicalCoords;
    showZoneId = obj.showZoneId;
    showZoneDomainLogicalCoords = obj.showZoneDomainLogicalCoords;
    showZoneBlockLogicalCoords = obj.showZoneBlockLogicalCoords;
hrchilds's avatar
hrchilds committed
152 153
    clearWindow = obj.clearWindow;
    pickLetter = obj.pickLetter;
hrchilds's avatar
hrchilds committed
154 155 156
    fulfilled = obj.fulfilled;
    pickType = obj.pickType;
    domain = obj.domain;
hrchilds's avatar
hrchilds committed
157
    elementNumber = obj.elementNumber;
hrchilds's avatar
hrchilds committed
158
    incidentElements = obj.incidentElements;
hrchilds's avatar
hrchilds committed
159 160 161 162 163 164 165 166 167 168 169 170
    timeStep = obj.timeStep;
    dimension = obj.dimension;
    databaseName = obj.databaseName;
    activeVariable = obj.activeVariable;
    pickPoint[0] = obj.pickPoint[0];
    pickPoint[1] = obj.pickPoint[1];
    pickPoint[2] = obj.pickPoint[2];

    cellPoint[0] = obj.cellPoint[0];
    cellPoint[1] = obj.cellPoint[1];
    cellPoint[2] = obj.cellPoint[2];

hrchilds's avatar
hrchilds committed
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
    nodePoint[0] = obj.nodePoint[0];
    nodePoint[1] = obj.nodePoint[1];
    nodePoint[2] = obj.nodePoint[2];

    for(i = 0; i < 6; ++i)
        plotBounds[i] = obj.plotBounds[i];

    rayPoint1[0] = obj.rayPoint1[0];
    rayPoint1[1] = obj.rayPoint1[1];
    rayPoint1[2] = obj.rayPoint1[2];

    rayPoint2[0] = obj.rayPoint2[0];
    rayPoint2[1] = obj.rayPoint2[1];
    rayPoint2[2] = obj.rayPoint2[2];

    meshInfo = obj.meshInfo;
    realElementNumber = obj.realElementNumber;
    realIncidentElements = obj.realIncidentElements;
    pnodeCoords = obj.pnodeCoords;
    dnodeCoords = obj.dnodeCoords;
    bnodeCoords = obj.bnodeCoords;
    dzoneCoords = obj.dzoneCoords;
    bzoneCoords = obj.bzoneCoords;
    needTransformMessage = obj.needTransformMessage;
hrchilds's avatar
hrchilds committed
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209
    // *** Copy the varInfo field ***
    // Delete the AttributeGroup objects and clear the vector.
    for(pos = varInfo.begin(); pos != varInfo.end(); ++pos)
        delete *pos;
    varInfo.clear();
    if(obj.varInfo.size() > 0)
        varInfo.reserve(obj.varInfo.size());
    // Duplicate the varInfo from obj.
    for(pos = obj.varInfo.begin(); pos != obj.varInfo.end(); ++pos)
    {
        PickVarInfo *oldPickVarInfo = (PickVarInfo *)(*pos);
        PickVarInfo *newPickVarInfo = new PickVarInfo(*oldPickVarInfo);
        varInfo.push_back(newPickVarInfo);
    }

hrchilds's avatar
hrchilds committed
210
    invalidVars = obj.invalidVars;
hrchilds's avatar
hrchilds committed
211
    doTimeCurve = obj.doTimeCurve;
hrchilds's avatar
hrchilds committed
212 213
    errorMessage = obj.errorMessage;
    error = obj.error;
hrchilds's avatar
hrchilds committed
214 215
    matSelected = obj.matSelected;
    needActualCoords = obj.needActualCoords;
hrchilds's avatar
hrchilds committed
216 217 218
    conciseOutput = obj.conciseOutput;
    showTimeStep = obj.showTimeStep;
    showMeshName = obj.showMeshName;
hrchilds's avatar
hrchilds committed
219 220
    blockPieceName = obj.blockPieceName;
    groupPieceName = obj.groupPieceName;
hrchilds's avatar
hrchilds committed
221 222 223
    ghosts = obj.ghosts;
    includeGhosts = obj.includeGhosts;
    elementIsGhost = obj.elementIsGhost;
hrchilds's avatar
hrchilds committed
224
    requiresGlyphPick = obj.requiresGlyphPick;
hrchilds's avatar
hrchilds committed
225
    locationSuccessful = obj.locationSuccessful;
hrchilds's avatar
hrchilds committed
226 227 228
    displayGlobalIds = obj.displayGlobalIds;
    globalElement = obj.globalElement;
    globalIncidentElements = obj.globalIncidentElements;
hrchilds's avatar
hrchilds committed
229
    elementIsGlobal = obj.elementIsGlobal;
hrchilds's avatar
hrchilds committed
230
    displayPickLetter = obj.displayPickLetter;
hrchilds's avatar
hrchilds committed
231
    ghostType = obj.ghostType;
hrchilds's avatar
hrchilds committed
232
    hasMixedGhostTypes = obj.hasMixedGhostTypes;
hrchilds's avatar
hrchilds committed
233 234
    linesData = obj.linesData;
    inputTopoDim = obj.inputTopoDim;
hrchilds's avatar
hrchilds committed
235 236 237 238 239 240 241 242 243 244 245 246 247

    SelectAll();
}

// ****************************************************************************
// Method: PickAttributes::~PickAttributes
//
// Purpose: 
//   Destructor for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
248
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
//
// Modifications:
//   
// ****************************************************************************

PickAttributes::~PickAttributes()
{
    AttributeGroupVector::iterator pos;

    // Destroy the varInfo field.
    for(pos = varInfo.begin(); pos != varInfo.end(); ++pos)
        delete *pos;
}

// ****************************************************************************
// Method: PickAttributes::operator = 
//
// Purpose: 
//   Assignment operator for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
272
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
273 274 275 276 277
//
// Modifications:
//   
// ****************************************************************************

hrchilds's avatar
hrchilds committed
278
PickAttributes& 
hrchilds's avatar
hrchilds committed
279 280
PickAttributes::operator = (const PickAttributes &obj)
{
hrchilds's avatar
hrchilds committed
281
    if (this == &obj) return *this;
hrchilds's avatar
hrchilds committed
282
    AttributeGroupVector::const_iterator pos;
hrchilds's avatar
hrchilds committed
283
    int i;
hrchilds's avatar
hrchilds committed
284

hrchilds's avatar
hrchilds committed
285 286 287 288 289 290 291 292 293
    variables = obj.variables;
    displayIncidentElements = obj.displayIncidentElements;
    showNodeId = obj.showNodeId;
    showNodeDomainLogicalCoords = obj.showNodeDomainLogicalCoords;
    showNodeBlockLogicalCoords = obj.showNodeBlockLogicalCoords;
    showNodePhysicalCoords = obj.showNodePhysicalCoords;
    showZoneId = obj.showZoneId;
    showZoneDomainLogicalCoords = obj.showZoneDomainLogicalCoords;
    showZoneBlockLogicalCoords = obj.showZoneBlockLogicalCoords;
hrchilds's avatar
hrchilds committed
294 295
    clearWindow = obj.clearWindow;
    pickLetter = obj.pickLetter;
hrchilds's avatar
hrchilds committed
296 297 298
    fulfilled = obj.fulfilled;
    pickType = obj.pickType;
    domain = obj.domain;
hrchilds's avatar
hrchilds committed
299
    elementNumber = obj.elementNumber;
hrchilds's avatar
hrchilds committed
300
    incidentElements = obj.incidentElements;
hrchilds's avatar
hrchilds committed
301 302 303 304 305 306 307 308 309 310 311 312
    timeStep = obj.timeStep;
    dimension = obj.dimension;
    databaseName = obj.databaseName;
    activeVariable = obj.activeVariable;
    pickPoint[0] = obj.pickPoint[0];
    pickPoint[1] = obj.pickPoint[1];
    pickPoint[2] = obj.pickPoint[2];

    cellPoint[0] = obj.cellPoint[0];
    cellPoint[1] = obj.cellPoint[1];
    cellPoint[2] = obj.cellPoint[2];

hrchilds's avatar
hrchilds committed
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
    nodePoint[0] = obj.nodePoint[0];
    nodePoint[1] = obj.nodePoint[1];
    nodePoint[2] = obj.nodePoint[2];

    for(i = 0; i < 6; ++i)
        plotBounds[i] = obj.plotBounds[i];

    rayPoint1[0] = obj.rayPoint1[0];
    rayPoint1[1] = obj.rayPoint1[1];
    rayPoint1[2] = obj.rayPoint1[2];

    rayPoint2[0] = obj.rayPoint2[0];
    rayPoint2[1] = obj.rayPoint2[1];
    rayPoint2[2] = obj.rayPoint2[2];

    meshInfo = obj.meshInfo;
    realElementNumber = obj.realElementNumber;
    realIncidentElements = obj.realIncidentElements;
    pnodeCoords = obj.pnodeCoords;
    dnodeCoords = obj.dnodeCoords;
    bnodeCoords = obj.bnodeCoords;
    dzoneCoords = obj.dzoneCoords;
    bzoneCoords = obj.bzoneCoords;
    needTransformMessage = obj.needTransformMessage;
hrchilds's avatar
hrchilds committed
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
    // *** Copy the varInfo field ***
    // Delete the AttributeGroup objects and clear the vector.
    for(pos = varInfo.begin(); pos != varInfo.end(); ++pos)
        delete *pos;
    varInfo.clear();
    if(obj.varInfo.size() > 0)
        varInfo.reserve(obj.varInfo.size());
    // Duplicate the varInfo from obj.
    for(pos = obj.varInfo.begin(); pos != obj.varInfo.end(); ++pos)
    {
        PickVarInfo *oldPickVarInfo = (PickVarInfo *)(*pos);
        PickVarInfo *newPickVarInfo = new PickVarInfo(*oldPickVarInfo);
        varInfo.push_back(newPickVarInfo);
    }

hrchilds's avatar
hrchilds committed
352
    invalidVars = obj.invalidVars;
hrchilds's avatar
hrchilds committed
353
    doTimeCurve = obj.doTimeCurve;
hrchilds's avatar
hrchilds committed
354 355
    errorMessage = obj.errorMessage;
    error = obj.error;
hrchilds's avatar
hrchilds committed
356 357
    matSelected = obj.matSelected;
    needActualCoords = obj.needActualCoords;
hrchilds's avatar
hrchilds committed
358 359 360
    conciseOutput = obj.conciseOutput;
    showTimeStep = obj.showTimeStep;
    showMeshName = obj.showMeshName;
hrchilds's avatar
hrchilds committed
361 362
    blockPieceName = obj.blockPieceName;
    groupPieceName = obj.groupPieceName;
hrchilds's avatar
hrchilds committed
363 364 365
    ghosts = obj.ghosts;
    includeGhosts = obj.includeGhosts;
    elementIsGhost = obj.elementIsGhost;
hrchilds's avatar
hrchilds committed
366
    requiresGlyphPick = obj.requiresGlyphPick;
hrchilds's avatar
hrchilds committed
367
    locationSuccessful = obj.locationSuccessful;
hrchilds's avatar
hrchilds committed
368 369 370
    displayGlobalIds = obj.displayGlobalIds;
    globalElement = obj.globalElement;
    globalIncidentElements = obj.globalIncidentElements;
hrchilds's avatar
hrchilds committed
371
    elementIsGlobal = obj.elementIsGlobal;
hrchilds's avatar
hrchilds committed
372
    displayPickLetter = obj.displayPickLetter;
hrchilds's avatar
hrchilds committed
373
    ghostType = obj.ghostType;
hrchilds's avatar
hrchilds committed
374
    hasMixedGhostTypes = obj.hasMixedGhostTypes;
hrchilds's avatar
hrchilds committed
375 376
    linesData = obj.linesData;
    inputTopoDim = obj.inputTopoDim;
hrchilds's avatar
hrchilds committed
377 378

    SelectAll();
hrchilds's avatar
hrchilds committed
379
    return *this;
hrchilds's avatar
hrchilds committed
380 381 382 383 384 385 386 387 388 389 390
}

// ****************************************************************************
// Method: PickAttributes::operator == 
//
// Purpose: 
//   Comparison operator == for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
391
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
//
// Modifications:
//   
// ****************************************************************************

bool
PickAttributes::operator == (const PickAttributes &obj) const
{
    int i;

    // Compare the pickPoint arrays.
    bool pickPoint_equal = true;
    for(i = 0; i < 3 && pickPoint_equal; ++i)
        pickPoint_equal = (pickPoint[i] == obj.pickPoint[i]);

    // Compare the cellPoint arrays.
    bool cellPoint_equal = true;
    for(i = 0; i < 3 && cellPoint_equal; ++i)
        cellPoint_equal = (cellPoint[i] == obj.cellPoint[i]);

hrchilds's avatar
hrchilds committed
412 413 414 415 416 417 418 419 420
    // Compare the nodePoint arrays.
    bool nodePoint_equal = true;
    for(i = 0; i < 3 && nodePoint_equal; ++i)
        nodePoint_equal = (nodePoint[i] == obj.nodePoint[i]);

    // Compare the plotBounds arrays.
    bool plotBounds_equal = true;
    for(i = 0; i < 6 && plotBounds_equal; ++i)
        plotBounds_equal = (plotBounds[i] == obj.plotBounds[i]);
hrchilds's avatar
hrchilds committed
421 422 423 424 425 426 427 428 429 430 431

    // Compare the rayPoint1 arrays.
    bool rayPoint1_equal = true;
    for(i = 0; i < 3 && rayPoint1_equal; ++i)
        rayPoint1_equal = (rayPoint1[i] == obj.rayPoint1[i]);

    // Compare the rayPoint2 arrays.
    bool rayPoint2_equal = true;
    for(i = 0; i < 3 && rayPoint2_equal; ++i)
        rayPoint2_equal = (rayPoint2[i] == obj.rayPoint2[i]);

hrchilds's avatar
hrchilds committed
432 433 434 435 436 437 438 439
    bool varInfo_equal = (obj.varInfo.size() == varInfo.size());
    for(i = 0; (i < varInfo.size()) && varInfo_equal; ++i)
    {
        // Make references to PickVarInfo from AttributeGroup *.
        const PickVarInfo &varInfo1 = *((const PickVarInfo *)(varInfo[i]));
        const PickVarInfo &varInfo2 = *((const PickVarInfo *)(obj.varInfo[i]));
        varInfo_equal = (varInfo1 == varInfo2);
    }
hrchilds's avatar
hrchilds committed
440

hrchilds's avatar
hrchilds committed
441
    // Create the return value
hrchilds's avatar
hrchilds committed
442 443 444 445 446 447 448 449 450 451
    return ((variables == obj.variables) &&
            (displayIncidentElements == obj.displayIncidentElements) &&
            (showNodeId == obj.showNodeId) &&
            (showNodeDomainLogicalCoords == obj.showNodeDomainLogicalCoords) &&
            (showNodeBlockLogicalCoords == obj.showNodeBlockLogicalCoords) &&
            (showNodePhysicalCoords == obj.showNodePhysicalCoords) &&
            (showZoneId == obj.showZoneId) &&
            (showZoneDomainLogicalCoords == obj.showZoneDomainLogicalCoords) &&
            (showZoneBlockLogicalCoords == obj.showZoneBlockLogicalCoords) &&
            (clearWindow == obj.clearWindow) &&
hrchilds's avatar
hrchilds committed
452
            (pickLetter == obj.pickLetter) &&
hrchilds's avatar
hrchilds committed
453 454 455
            (fulfilled == obj.fulfilled) &&
            (pickType == obj.pickType) &&
            (domain == obj.domain) &&
hrchilds's avatar
hrchilds committed
456
            (elementNumber == obj.elementNumber) &&
hrchilds's avatar
hrchilds committed
457
            (incidentElements == obj.incidentElements) &&
hrchilds's avatar
hrchilds committed
458 459 460 461 462 463
            (timeStep == obj.timeStep) &&
            (dimension == obj.dimension) &&
            (databaseName == obj.databaseName) &&
            (activeVariable == obj.activeVariable) &&
            pickPoint_equal &&
            cellPoint_equal &&
hrchilds's avatar
hrchilds committed
464 465
            nodePoint_equal &&
            plotBounds_equal &&
hrchilds's avatar
hrchilds committed
466 467
            rayPoint1_equal &&
            rayPoint2_equal &&
hrchilds's avatar
hrchilds committed
468 469
            (meshInfo == obj.meshInfo) &&
            (realElementNumber == obj.realElementNumber) &&
hrchilds's avatar
hrchilds committed
470
            (realIncidentElements == obj.realIncidentElements) &&
hrchilds's avatar
hrchilds committed
471 472 473 474 475 476
            (pnodeCoords == obj.pnodeCoords) &&
            (dnodeCoords == obj.dnodeCoords) &&
            (bnodeCoords == obj.bnodeCoords) &&
            (dzoneCoords == obj.dzoneCoords) &&
            (bzoneCoords == obj.bzoneCoords) &&
            (needTransformMessage == obj.needTransformMessage) &&
hrchilds's avatar
hrchilds committed
477
            varInfo_equal &&
hrchilds's avatar
hrchilds committed
478
            (invalidVars == obj.invalidVars) &&
hrchilds's avatar
hrchilds committed
479 480
            (doTimeCurve == obj.doTimeCurve) &&
            (errorMessage == obj.errorMessage) &&
hrchilds's avatar
hrchilds committed
481 482
            (error == obj.error) &&
            (matSelected == obj.matSelected) &&
hrchilds's avatar
hrchilds committed
483 484 485
            (needActualCoords == obj.needActualCoords) &&
            (conciseOutput == obj.conciseOutput) &&
            (showTimeStep == obj.showTimeStep) &&
hrchilds's avatar
hrchilds committed
486 487
            (showMeshName == obj.showMeshName) &&
            (blockPieceName == obj.blockPieceName) &&
hrchilds's avatar
hrchilds committed
488 489 490
            (groupPieceName == obj.groupPieceName) &&
            (ghosts == obj.ghosts) &&
            (includeGhosts == obj.includeGhosts) &&
hrchilds's avatar
hrchilds committed
491
            (elementIsGhost == obj.elementIsGhost) &&
hrchilds's avatar
hrchilds committed
492
            (requiresGlyphPick == obj.requiresGlyphPick) &&
hrchilds's avatar
hrchilds committed
493 494 495
            (locationSuccessful == obj.locationSuccessful) &&
            (displayGlobalIds == obj.displayGlobalIds) &&
            (globalElement == obj.globalElement) &&
hrchilds's avatar
hrchilds committed
496
            (globalIncidentElements == obj.globalIncidentElements) &&
hrchilds's avatar
hrchilds committed
497
            (elementIsGlobal == obj.elementIsGlobal) &&
hrchilds's avatar
hrchilds committed
498
            (displayPickLetter == obj.displayPickLetter) &&
hrchilds's avatar
hrchilds committed
499
            (ghostType == obj.ghostType) &&
hrchilds's avatar
hrchilds committed
500 501 502
            (hasMixedGhostTypes == obj.hasMixedGhostTypes) &&
            (linesData == obj.linesData) &&
            (inputTopoDim == obj.inputTopoDim));
hrchilds's avatar
hrchilds committed
503 504 505 506 507 508 509 510 511 512 513
}

// ****************************************************************************
// Method: PickAttributes::operator != 
//
// Purpose: 
//   Comparison operator != for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
514
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534
//
// Modifications:
//   
// ****************************************************************************

bool
PickAttributes::operator != (const PickAttributes &obj) const
{
    return !(this->operator == (obj));
}

// ****************************************************************************
// Method: PickAttributes::TypeName
//
// Purpose: 
//   Type name method for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
535
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555
//
// Modifications:
//   
// ****************************************************************************

const std::string
PickAttributes::TypeName() const
{
    return "PickAttributes";
}

// ****************************************************************************
// Method: PickAttributes::CopyAttributes
//
// Purpose: 
//   CopyAttributes method for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
556
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583
//
// Modifications:
//   
// ****************************************************************************

bool
PickAttributes::CopyAttributes(const AttributeGroup *atts)
{
    if(TypeName() != atts->TypeName())
        return false;

    // Call assignment operator.
    const PickAttributes *tmp = (const PickAttributes *)atts;
    *this = *tmp;

    return true;
}

// ****************************************************************************
// Method: PickAttributes::CreateCompatible
//
// Purpose: 
//   CreateCompatible method for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
584
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600
//
// Modifications:
//   
// ****************************************************************************

AttributeSubject *
PickAttributes::CreateCompatible(const std::string &tname) const
{
    AttributeSubject *retval = 0;
    if(TypeName() == tname)
        retval = new PickAttributes(*this);
    // Other cases could go here too. 

    return retval;
}

hrchilds's avatar
hrchilds committed
601 602 603 604 605 606 607 608 609
// ****************************************************************************
// Method: PickAttributes::NewInstance
//
// Purpose: 
//   NewInstance method for the PickAttributes class.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
610
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627
//
// Modifications:
//   
// ****************************************************************************

AttributeSubject *
PickAttributes::NewInstance(bool copy) const
{
    AttributeSubject *retval = 0;
    if(copy)
        retval = new PickAttributes(*this);
    else
        retval = new PickAttributes;

    return retval;
}

hrchilds's avatar
hrchilds committed
628 629 630 631 632 633 634 635 636
// ****************************************************************************
// Method: PickAttributes::SelectAll
//
// Purpose: 
//   Selects all attributes.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
637
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
638 639 640 641 642 643 644 645
//
// Modifications:
//   
// ****************************************************************************

void
PickAttributes::SelectAll()
{
hrchilds's avatar
hrchilds committed
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
    Select(0, (void *)&variables);
    Select(1, (void *)&displayIncidentElements);
    Select(2, (void *)&showNodeId);
    Select(3, (void *)&showNodeDomainLogicalCoords);
    Select(4, (void *)&showNodeBlockLogicalCoords);
    Select(5, (void *)&showNodePhysicalCoords);
    Select(6, (void *)&showZoneId);
    Select(7, (void *)&showZoneDomainLogicalCoords);
    Select(8, (void *)&showZoneBlockLogicalCoords);
    Select(9, (void *)&clearWindow);
    Select(10, (void *)&pickLetter);
    Select(11, (void *)&fulfilled);
    Select(12, (void *)&pickType);
    Select(13, (void *)&domain);
    Select(14, (void *)&elementNumber);
    Select(15, (void *)&incidentElements);
    Select(16, (void *)&timeStep);
    Select(17, (void *)&dimension);
    Select(18, (void *)&databaseName);
    Select(19, (void *)&activeVariable);
    Select(20, (void *)pickPoint, 3);
    Select(21, (void *)cellPoint, 3);
    Select(22, (void *)nodePoint, 3);
    Select(23, (void *)plotBounds, 6);
    Select(24, (void *)rayPoint1, 3);
    Select(25, (void *)rayPoint2, 3);
    Select(26, (void *)&meshInfo);
    Select(27, (void *)&realElementNumber);
    Select(28, (void *)&realIncidentElements);
    Select(29, (void *)&pnodeCoords);
    Select(30, (void *)&dnodeCoords);
    Select(31, (void *)&bnodeCoords);
    Select(32, (void *)&dzoneCoords);
    Select(33, (void *)&bzoneCoords);
    Select(34, (void *)&needTransformMessage);
    Select(35, (void *)&varInfo);
hrchilds's avatar
hrchilds committed
682
    Select(36, (void *)&invalidVars);
hrchilds's avatar
hrchilds committed
683
    Select(37, (void *)&doTimeCurve);
hrchilds's avatar
hrchilds committed
684 685
    Select(38, (void *)&errorMessage);
    Select(39, (void *)&error);
hrchilds's avatar
hrchilds committed
686 687
    Select(40, (void *)&matSelected);
    Select(41, (void *)&needActualCoords);
hrchilds's avatar
hrchilds committed
688 689 690
    Select(42, (void *)&conciseOutput);
    Select(43, (void *)&showTimeStep);
    Select(44, (void *)&showMeshName);
hrchilds's avatar
hrchilds committed
691 692
    Select(45, (void *)&blockPieceName);
    Select(46, (void *)&groupPieceName);
hrchilds's avatar
hrchilds committed
693 694 695
    Select(47, (void *)&ghosts);
    Select(48, (void *)&includeGhosts);
    Select(49, (void *)&elementIsGhost);
hrchilds's avatar
hrchilds committed
696
    Select(50, (void *)&requiresGlyphPick);
hrchilds's avatar
hrchilds committed
697
    Select(51, (void *)&locationSuccessful);
hrchilds's avatar
hrchilds committed
698 699 700
    Select(52, (void *)&displayGlobalIds);
    Select(53, (void *)&globalElement);
    Select(54, (void *)&globalIncidentElements);
hrchilds's avatar
hrchilds committed
701
    Select(55, (void *)&elementIsGlobal);
hrchilds's avatar
hrchilds committed
702
    Select(56, (void *)&displayPickLetter);
hrchilds's avatar
hrchilds committed
703
    Select(57, (void *)&ghostType);
hrchilds's avatar
hrchilds committed
704
    Select(58, (void *)&hasMixedGhostTypes);
hrchilds's avatar
hrchilds committed
705 706
    Select(59, (void *)&linesData);
    Select(60, (void *)&inputTopoDim);
hrchilds's avatar
hrchilds committed
707 708 709 710 711 712 713 714 715 716 717
}

// ****************************************************************************
// Method: PickAttributes::CreateSubAttributeGroup
//
// Purpose: 
//   This class contains attributes used for pick.
//
// Note:       Autogenerated by xml2atts.
//
// Programmer: xml2atts
hrchilds's avatar
hrchilds committed
718
// Creation:   Thu Nov 17 11:49:16 PDT 2005
hrchilds's avatar
hrchilds committed
719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
//
// Modifications:
//   
// ****************************************************************************

AttributeGroup *
PickAttributes::CreateSubAttributeGroup(int)
{
    return new PickVarInfo;
}

///////////////////////////////////////////////////////////////////////////////
// Persistence methods
///////////////////////////////////////////////////////////////////////////////

// ****************************************************************************
// Method: PickAttributes::CreateNode
//
// Purpose: 
//
// Modifications:
hrchilds's avatar
hrchilds committed
740 741
//   Kathleen Bonnell, Wed Jun  9 07:54:02 PDT 2004
//   Add doTimeCurve and conciseOutput, showTimeStep, showMeshName.
hrchilds's avatar
hrchilds committed
742 743
//   
// ****************************************************************************
hrchilds's avatar
hrchilds committed
744

hrchilds's avatar
hrchilds committed
745
bool
hrchilds's avatar
hrchilds committed
746
PickAttributes::CreateNode(DataNode *parentNode, bool completeSave, bool forceAdd)
hrchilds's avatar
hrchilds committed
747 748 749 750 751 752 753 754 755
{
    if(parentNode == 0)
        return false;

    PickAttributes defaultObject;
    bool addToParent = false;
    // Create a node for PickAttributes.
    DataNode *node = new DataNode("PickAttributes");

hrchilds's avatar
hrchilds committed
756
    if(completeSave || !FieldsEqual(0, &defaultObject))
hrchilds's avatar
hrchilds committed
757 758
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
759
        node->AddNode(new DataNode("variables", variables));
hrchilds's avatar
hrchilds committed
760 761
    }

hrchilds's avatar
hrchilds committed
762
    if(completeSave || !FieldsEqual(1, &defaultObject))
hrchilds's avatar
hrchilds committed
763 764
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
765
        node->AddNode(new DataNode("displayIncidentElements", displayIncidentElements));
hrchilds's avatar
hrchilds committed
766 767
    }

hrchilds's avatar
hrchilds committed
768
    if(completeSave || !FieldsEqual(2, &defaultObject))
hrchilds's avatar
hrchilds committed
769 770
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
771
        node->AddNode(new DataNode("showNodeId", showNodeId));
hrchilds's avatar
hrchilds committed
772 773
    }

hrchilds's avatar
hrchilds committed
774
    if(completeSave || !FieldsEqual(3, &defaultObject))
hrchilds's avatar
hrchilds committed
775 776
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
777 778
        node->AddNode(new DataNode("showNodeDomainLogicalCoords", 
                                    showNodeDomainLogicalCoords));
hrchilds's avatar
hrchilds committed
779 780
    }

hrchilds's avatar
hrchilds committed
781
    if(completeSave || !FieldsEqual(4, &defaultObject))
hrchilds's avatar
hrchilds committed
782 783
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
784 785
        node->AddNode(new DataNode("showNodeBlockLogicalCoords", 
                                    showNodeBlockLogicalCoords));
hrchilds's avatar
hrchilds committed
786 787
    }

hrchilds's avatar
hrchilds committed
788
    if(completeSave || !FieldsEqual(5, &defaultObject))
hrchilds's avatar
hrchilds committed
789 790
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
791 792
        node->AddNode(new DataNode("showNodePhysicalCoords", 
                                    showNodePhysicalCoords));
hrchilds's avatar
hrchilds committed
793 794
    }

hrchilds's avatar
hrchilds committed
795
    if(completeSave || !FieldsEqual(6, &defaultObject))
hrchilds's avatar
hrchilds committed
796 797
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
798 799
        node->AddNode(new DataNode("showZoneId", 
                                    showZoneId));
hrchilds's avatar
hrchilds committed
800 801
    }

hrchilds's avatar
hrchilds committed
802
    if(completeSave || !FieldsEqual(7, &defaultObject))
hrchilds's avatar
hrchilds committed
803 804
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
805 806
        node->AddNode(new DataNode("showZoneDomainLogicalCoords", 
                                    showZoneDomainLogicalCoords));
hrchilds's avatar
hrchilds committed
807 808
    }

hrchilds's avatar
hrchilds committed
809
    if(completeSave || !FieldsEqual(8, &defaultObject))
hrchilds's avatar
hrchilds committed
810 811
    {
        addToParent = true;
hrchilds's avatar
hrchilds committed
812 813
        node->AddNode(new DataNode("showZoneBlockLogicalCoords", 
                                    showZoneBlockLogicalCoords));
hrchilds's avatar
hrchilds committed
814 815
    }

hrchilds's avatar
hrchilds committed
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840
    if(completeSave || !FieldsEqual(37, &defaultObject))
    {
        addToParent = true;
        node->AddNode(new DataNode("doTimeCurve", 
                                    doTimeCurve));
    }

    if(completeSave || !FieldsEqual(42, &defaultObject))
    {
        addToParent = true;
        node->AddNode(new DataNode("conciseOutput", conciseOutput));
    }

    if(completeSave || !FieldsEqual(43, &defaultObject))
    {
        addToParent = true;
        node->AddNode(new DataNode("showTimeStep", showTimeStep));
    }

    if(completeSave || !FieldsEqual(44, &defaultObject))
    {
        addToParent = true;
        node->AddNode(new DataNode("showMeshName", showMeshName));
    }

hrchilds's avatar
hrchilds committed
841 842 843 844 845
    if(completeSave || !FieldsEqual(52, &defaultObject))
    {
        addToParent = true;
        node->AddNode(new DataNode("displayGlobalIds", displayGlobalIds));
    }
hrchilds's avatar
hrchilds committed
846 847 848 849 850 851 852 853 854

    // Add the node to the parent node.
    if(addToParent || forceAdd)
        parentNode->AddNode(node);
    else
        delete node;

    return (addToParent || forceAdd);

hrchilds's avatar
hrchilds committed
855
}
hrchilds's avatar
hrchilds committed
856 857 858 859 860 861
// ****************************************************************************
// Method: PickAttributes::SetFromNode
//
// Purpose: 
//
// Modifications:
hrchilds's avatar
hrchilds committed
862 863
//   Kathleen Bonnell, Wed Jun  9 07:54:02 PDT 2004
//   Add doTimeCurve and conciseOutput, showTimeStep, showMeshName.
hrchilds's avatar
hrchilds committed
864 865
//   
// ****************************************************************************
hrchilds's avatar
hrchilds committed
866

hrchilds's avatar
hrchilds committed
867 868 869 870 871 872 873 874 875 876 877
void
PickAttributes::SetFromNode(DataNode *parentNode)
{
    if(parentNode == 0)
        return;

    DataNode *searchNode = parentNode->GetNode("PickAttributes");
    if(searchNode == 0)
        return;

    DataNode *node;
hrchilds's avatar
hrchilds committed
878

hrchilds's avatar
hrchilds committed
879 880
    if((node = searchNode->GetNode("variables")) != 0)
        SetVariables(node->AsStringVector());
hrchilds's avatar
hrchilds committed
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900

    if((node = searchNode->GetNode("displayIncidentElements")) != 0)
        SetDisplayIncidentElements(node->AsBool());

    if((node = searchNode->GetNode("showNodeId")) != 0)
        SetShowNodeId(node->AsBool());
    if((node = searchNode->GetNode("showNodeDomainLogicalCoords")) != 0)
        SetShowNodeDomainLogicalCoords(node->AsBool());
    if((node = searchNode->GetNode("showNodeBlockLogicalCoords")) != 0)
        SetShowNodeBlockLogicalCoords(node->AsBool());
    if((node = searchNode->GetNode("showNodePhysicalCoords")) != 0)
        SetShowNodePhysicalCoords(node->AsBool());

    if((node = searchNode->GetNode("showZoneId")) != 0)
        SetShowZoneId(node->AsBool());
    if((node = searchNode->GetNode("showZoneDomainLogicalCoords")) != 0)
        SetShowZoneDomainLogicalCoords(node->AsBool());
    if((node = searchNode->GetNode("showZoneBlockLogicalCoords")) != 0)
        SetShowZoneBlockLogicalCoords(node->AsBool());

hrchilds's avatar
hrchilds committed
901 902 903 904 905 906 907 908 909 910 911 912
    if((node = searchNode->GetNode("doTimeCurve")) != 0)
        SetDoTimeCurve(node->AsBool());

    if((node = searchNode->GetNode("conciseOutput")) != 0)
        SetConciseOutput(node->AsBool());

    if((node = searchNode->GetNode("showTimeStep")) != 0)
        SetShowTimeStep(node->AsBool());

    if((node = searchNode->GetNode("showMeshName")) != 0)
        SetShowMeshName(node->AsBool());

hrchilds's avatar
hrchilds committed
913 914 915
    if((node = searchNode->GetNode("displayGlobalIds")) != 0)
        SetDisplayGlobalIds(node->AsBool());

hrchilds's avatar
hrchilds committed
916 917 918 919 920 921 922 923
    // Clear all the PickVarInfos.
    ClearPickVarInfos();

}
///////////////////////////////////////////////////////////////////////////////
// Set property methods
///////////////////////////////////////////////////////////////////////////////

hrchilds's avatar
hrchilds committed
924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986
void
PickAttributes::SetVariables(const stringVector &variables_)
{
    variables = variables_;
    Select(0, (void *)&variables);
}

void
PickAttributes::SetDisplayIncidentElements(bool displayIncidentElements_)
{
    displayIncidentElements = displayIncidentElements_;
    Select(1, (void *)&displayIncidentElements);
}

void
PickAttributes::SetShowNodeId(bool showNodeId_)
{
    showNodeId = showNodeId_;
    Select(2, (void *)&showNodeId);
}

void
PickAttributes::SetShowNodeDomainLogicalCoords(bool showNodeDomainLogicalCoords_)
{
    showNodeDomainLogicalCoords = showNodeDomainLogicalCoords_;
    Select(3, (void *)&showNodeDomainLogicalCoords);
}

void
PickAttributes::SetShowNodeBlockLogicalCoords(bool showNodeBlockLogicalCoords_)
{
    showNodeBlockLogicalCoords = showNodeBlockLogicalCoords_;
    Select(4, (void *)&showNodeBlockLogicalCoords);
}

void
PickAttributes::SetShowNodePhysicalCoords(bool showNodePhysicalCoords_)
{
    showNodePhysicalCoords = showNodePhysicalCoords_;
    Select(5, (void *)&showNodePhysicalCoords);
}

void
PickAttributes::SetShowZoneId(bool showZoneId_)
{
    showZoneId = showZoneId_;
    Select(6, (void *)&showZoneId);
}

void
PickAttributes::SetShowZoneDomainLogicalCoords(bool showZoneDomainLogicalCoords_)
{
    showZoneDomainLogicalCoords = showZoneDomainLogicalCoords_;
    Select(7, (void *)&showZoneDomainLogicalCoords);
}

void
PickAttributes::SetShowZoneBlockLogicalCoords(bool showZoneBlockLogicalCoords_)
{
    showZoneBlockLogicalCoords = showZoneBlockLogicalCoords_;
    Select(8, (void *)&showZoneBlockLogicalCoords);
}

hrchilds's avatar
hrchilds committed
987 988 989 990
void
PickAttributes::SetClearWindow(bool clearWindow_)
{
    clearWindow = clearWindow_;
hrchilds's avatar
hrchilds committed
991 992 993 994 995 996 997 998
    Select(9, (void *)&clearWindow);
}

void
PickAttributes::SetPickLetter(const std::string &pickLetter_)
{
    pickLetter = pickLetter_;
    Select(10, (void *)&pickLetter);
hrchilds's avatar
hrchilds committed
999 1000 1001 1002 1003 1004
}

void
PickAttributes::SetFulfilled(bool fulfilled_)
{
    fulfilled = fulfilled_;
hrchilds's avatar
hrchilds committed
1005
    Select(11, (void *)&fulfilled);
hrchilds's avatar
hrchilds committed
1006 1007 1008
}

void
hrchilds's avatar
hrchilds committed
1009
PickAttributes::SetPickType(PickAttributes::PickType pickType_)
hrchilds's avatar
hrchilds committed
1010
{
hrchilds's avatar
hrchilds committed
1011 1012 1013 1014 1015 1016 1017 1018 1019
    pickType = pickType_;
    Select(12, (void *)&pickType);
}

void
PickAttributes::SetDomain(int domain_)
{
    domain = domain_;
    Select(13, (void *)&domain);
hrchilds's avatar
hrchilds committed
1020 1021 1022
}

void
hrchilds's avatar
hrchilds committed
1023
PickAttributes::SetElementNumber(int elementNumber_)
hrchilds's avatar
hrchilds committed
1024
{
hrchilds's avatar
hrchilds committed
1025
    elementNumber = elementNumber_;
hrchilds's avatar
hrchilds committed
1026
    Select(14, (void *)&elementNumber);
hrchilds's avatar
hrchilds committed
1027 1028 1029
}

void
hrchilds's avatar
hrchilds committed
1030
PickAttributes::SetIncidentElements(const intVector &incidentElements_)
hrchilds's avatar
hrchilds committed
1031
{
hrchilds's avatar
hrchilds committed
1032 1033
    incidentElements = incidentElements_;
    Select(15, (void *)&incidentElements);
hrchilds's avatar
hrchilds committed
1034 1035 1036
}

void
hrchilds's avatar
hrchilds committed
1037
PickAttributes::SetTimeStep(int timeStep_)
hrchilds's avatar
hrchilds committed
1038
{
hrchilds's avatar
hrchilds committed
1039 1040
    timeStep = timeStep_;
    Select(16, (void *)&timeStep);
hrchilds's avatar
hrchilds committed
1041 1042 1043 1044 1045 1046
}

void
PickAttributes::SetDimension(int dimension_)
{
    dimension = dimension_;
hrchilds's avatar
hrchilds committed
1047
    Select(17, (void *)&dimension);
hrchilds's avatar
hrchilds committed
1048 1049 1050 1051 1052 1053
}

void
PickAttributes::SetDatabaseName(const std::string &databaseName_)
{
    databaseName = databaseName_;
hrchilds's avatar
hrchilds committed
1054
    Select(18, (void *)&databaseName);
hrchilds's avatar
hrchilds committed
1055 1056 1057 1058 1059 1060
}

void
PickAttributes::SetActiveVariable(const std::string &activeVariable_)
{
    activeVariable = activeVariable_;
hrchilds's avatar
hrchilds committed
1061
    Select(19, (void *)&activeVariable);
hrchilds's avatar
hrchilds committed
1062 1063 1064 1065 1066 1067 1068 1069
}

void
PickAttributes::SetPickPoint(const float *pickPoint_)
{
    pickPoint[0] = pickPoint_[0];
    pickPoint[1] = pickPoint_[1];
    pickPoint[2] = pickPoint_[2];
hrchilds's avatar
hrchilds committed
1070
    Select(20, (void *)pickPoint, 3);
hrchilds's avatar
hrchilds committed
1071 1072 1073 1074 1075 1076 1077 1078
}

void
PickAttributes::SetCellPoint(const float *cellPoint_)
{
    cellPoint[0] = cellPoint_[0];
    cellPoint[1] = cellPoint_[1];
    cellPoint[2] = cellPoint_[2];
hrchilds's avatar
hrchilds committed
1079
    Select(21, (void *)cellPoint, 3);
hrchilds's avatar
hrchilds committed
1080 1081 1082
}

void
hrchilds's avatar
hrchilds committed
1083
PickAttributes::SetNodePoint(const float *nodePoint_)
hrchilds's avatar
hrchilds committed
1084
{
hrchilds's avatar
hrchilds committed
1085 1086 1087 1088
    nodePoint[0] = nodePoint_[0];
    nodePoint[1] = nodePoint_[1];
    nodePoint[2] = nodePoint_[2];
    Select(22, (void *)nodePoint, 3);
hrchilds's avatar
hrchilds committed
1089 1090 1091
}

void
hrchilds's avatar
hrchilds committed
1092
PickAttributes::SetPlotBounds(const float *plotBounds_)
hrchilds's avatar
hrchilds committed
1093
{
hrchilds's avatar
hrchilds committed
1094 1095 1096
    for(int i = 0; i < 6; ++i)
        plotBounds[i] = plotBounds_[i];
    Select(23, (void *)plotBounds, 6);
hrchilds's avatar
hrchilds committed
1097 1098 1099 1100 1101 1102 1103 1104
}

void
PickAttributes::SetRayPoint1(const float *rayPoint1_)
{
    rayPoint1[0] = rayPoint1_[0];
    rayPoint1[1] = rayPoint1_[1];
    rayPoint1[2] = rayPoint1_[2];
hrchilds's avatar
hrchilds committed
1105
    Select(24, (void *)rayPoint1, 3);
hrchilds's avatar
hrchilds committed
1106 1107 1108 1109 1110 1111 1112 1113
}

void
PickAttributes::SetRayPoint2(const float *rayPoint2_)
{
    rayPoint2[0] = rayPoint2_[0];
    rayPoint2[1] = rayPoint2_[1];
    rayPoint2[2] = rayPoint2_[2];
hrchilds's avatar
hrchilds committed
1114
    Select(25, (void *)rayPoint2, 3);
hrchilds's avatar
hrchilds committed
1115 1116 1117
}

void
hrchilds's avatar
hrchilds committed
1118
PickAttributes::SetMeshInfo(const std::string &meshInfo_)
hrchilds's avatar
hrchilds committed
1119
{
hrchilds's avatar
hrchilds committed
1120 1121
    meshInfo = meshInfo_;
    Select(26, (void *)&meshInfo);
hrchilds's avatar
hrchilds committed
1122 1123 1124
}

void
hrchilds's avatar
hrchilds committed
1125
PickAttributes::SetRealElementNumber(int realElementNumber_)
hrchilds's avatar
hrchilds committed
1126
{
hrchilds's avatar
hrchilds committed
1127 1128
    realElementNumber = realElementNumber_;
    Select(27, (void *)&realElementNumber);
hrchilds's avatar
hrchilds committed
1129 1130
}

hrchilds's avatar
hrchilds committed
1131
void
hrchilds's avatar
hrchilds committed
1132
PickAttributes::SetRealIncidentElements(const intVector &realIncidentElements_)
hrchilds's avatar
hrchilds committed
1133
{
hrchilds's avatar
hrchilds committed
1134 1135
    realIncidentElements = realIncidentElements_;
    Select(28, (void *)&realIncidentElements);
hrchilds's avatar
hrchilds committed
1136 1137
}

hrchilds's avatar
hrchilds committed
1138
void
hrchilds's avatar
hrchilds committed
1139
PickAttributes::SetPnodeCoords(const stringVector &pnodeCoords_)
hrchilds's avatar
hrchilds committed
1140
{
hrchilds's avatar
hrchilds committed
1141 1142
    pnodeCoords = pnodeCoords_;
    Select(29, (void *)&pnodeCoords);
hrchilds's avatar
hrchilds committed
1143 1144 1145
}

void
hrchilds's avatar
hrchilds committed
1146
PickAttributes::SetDnodeCoords(const stringVector &dnodeCoords_)
hrchilds's avatar
hrchilds committed
1147
{
hrchilds's avatar
hrchilds committed
1148 1149
    dnodeCoords = dnodeCoords_;
    Select(30, (void *)&dnodeCoords);
hrchilds's avatar
hrchilds committed
1150 1151
}

hrchilds's avatar
hrchilds committed
1152
void
hrchilds's avatar
hrchilds committed
1153
PickAttributes::SetBnodeCoords(const stringVector &bnodeCoords_)
hrchilds's avatar
hrchilds committed
1154
{
hrchilds's avatar
hrchilds committed
1155 1156
    bnodeCoords = bnodeCoords_;
    Select(31, (void *)&bnodeCoords);
hrchilds's avatar
hrchilds committed
1157 1158
}

hrchilds's avatar
hrchilds committed
1159
void
hrchilds's avatar
hrchilds committed
1160
PickAttributes::SetDzoneCoords(const stringVector &dzoneCoords_)
hrchilds's avatar
hrchilds committed
1161
{
hrchilds's avatar
hrchilds committed
1162 1163
    dzoneCoords = dzoneCoords_;
    Select(32, (void *)&dzoneCoords);
hrchilds's avatar
hrchilds committed
1164 1165
}

hrchilds's avatar
hrchilds committed
1166
void
hrchilds's avatar
hrchilds committed
1167
PickAttributes::SetBzoneCoords(const stringVector &bzoneCoords_)
hrchilds's avatar
hrchilds committed
1168
{
hrchilds's avatar
hrchilds committed
1169 1170
    bzoneCoords = bzoneCoords_;
    Select(33, (void *)&bzoneCoords);
hrchilds's avatar