this->Modified();
}
-vtkIdType VTKViewer_ExtractUnstructuredGrid::GetInputId(int theOutId) const{
- if(myCellIds.empty() && myCellTypes.empty()) return theOutId;
- if(myOut2InId.empty() || theOutId > myOut2InId.size()) return -1;
+vtkIdType VTKViewer_ExtractUnstructuredGrid::GetInputId(int theOutId) const
+{
+ if ( myCellIds.empty() && myCellTypes.empty() )
+ return theOutId;
+
+ if ( myOut2InId.empty() || theOutId > (int)myOut2InId.size() )
+ return -1;
#if defined __GNUC_2__
return myOut2InId[theOutId];
#else
//----------------------------------------------------------------------------
-vtkIdType VTKViewer_GeometryFilter::GetElemObjId(int theVtkID){
- if(myVTK2ObjIds.empty() || theVtkID > myVTK2ObjIds.size()) return -1;
+vtkIdType VTKViewer_GeometryFilter::GetElemObjId(int theVtkID)
+{
+ if ( myVTK2ObjIds.empty() || theVtkID > (int)myVTK2ObjIds.size() )
+ return -1;
+
#if defined __GNUC_2__
return myVTK2ObjIds[theVtkID];
#else
float c1[3], c2[3];
int picked=0;
int *winSize;
- float x, y, t, p;
+ float x, y, t;
float *viewport;
float cameraPos[4], cameraFP[4];
float *displayCoords, *worldCoords;
float windowLowerLeft[4], windowUpperRight[4];
float bounds[6], tol;
float tF, tB;
- float hitPosition[3];
float cameraDOP[3];
// Initialize picking process
* p2[4][4] is the corner points of bottom face.
* \retval The method returns a non-zero value, if the point is inside.
*/
-char VTKViewer_RectPicker::PointInside (float p[3], float p1[4][4], float p2[4][4], float tol)
+char VTKViewer_RectPicker::PointInside(float p[3], float p1[4][4], float p2[4][4], float tol)
{
- int i, j, k;
+ int j, k;
float t, coord[3];
// Fix one coordinate (x, for example) and