Changeset 846


Ignore:
Timestamp:
Jan 8, 2008, 7:02:21 AM (17 years ago)
Author:
vrinside
Message:

Removed compile warnings

Location:
trunk/vizservers/nanovis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/vizservers/nanovis/PCASplit.cpp

    r827 r846  
    1616
    1717PCASplit::PCASplit()
    18 : _maxLevel(4), _minDistance(0.5f), _distanceScale(0.2f), _finalMaxLevel(0), _indexCount(0)
     18: _maxLevel(4), _minDistance(0.5f), _distanceScale(0.2f), _indexCount(0), _finalMaxLevel(0)
    1919{
    2020        _indices = new unsigned int[MAX_INDEX];
     
    225225
    226226        SymmetricMatrix A(3);
    227         for (int i = 1, index = 0; i <= 3; ++i)
     227        for (int i = 1; i <= 3; ++i)
    228228                for (int j = 1; j <= i; ++j)
    229229                {
     
    236236        Vector3 emax(U(1, 3), U(2, 3), U(3, 3));
    237237       
    238         int index1Count = 0, index2Count = 0;
    239 
    240238        int left = 0, right = count - 1;
    241239
     
    280278        _indexCount = 0;
    281279
    282         int i = 0;
    283280        while (clNode)
    284281        {
     
    297294        // the process values of split are in _curClusterNode and _curClusterCount
    298295        ClusterListNode* curClusterNode = _curClusterNode;
    299         int curClusterNodeCount = _curClusterCount;
     296        unsigned int curClusterNodeCount = _curClusterCount;
    300297
    301298        if (curClusterNodeCount)
     
    318315                                parent[0].setPoints(points, _indices[0]);
    319316
    320                                 for (int i = 0, in = 0; i < curClusterNodeCount; ++i)
     317                                for (unsigned int i = 0, in = 0; i < curClusterNodeCount; ++i)
    321318                                {
    322319                                        if (i >= _indices[in])
     
    381378                               
    382379                                // set points of sub-clusters
    383                                 for (int i = 0; i < curClusterNodeCount; ++i)
     380                                for (unsigned int i = 0; i < curClusterNodeCount; ++i)
    384381                                {
    385382                                        points[i].position = node->data->centroid_t;
  • trunk/vizservers/nanovis/PCASplit.h

    r835 r846  
    3636
    3737public :
     38
     39        Cluster() : color(1.0f, 1.0f, 1.0f, 1.0f), scale(0.0f), numOfChildren(0), numOfPoints(0),
     40                        points(0), children(0), vbo(0)/*, minValue(0.0f), maxValue(0.0f)*/
     41                        , level(0)
     42        {
     43        }
     44
    3845        void setChildren(Cluster* children, int count)
    3946        {
     
    4754        }
    4855       
    49         Cluster() : color(1.0f, 1.0f, 1.0f, 1.0f), numOfChildren(0), numOfPoints(0),
    50                         points(0), children(0), scale(0.0f), vbo(0)/*, minValue(0.0f), maxValue(0.0f)*/
    51                         , level(0)
    52         {
    53         }
    5456};
    5557
Note: See TracChangeset for help on using the changeset viewer.