Changeset 4898 for trunk/psLib/src/astro
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- Location:
- trunk/psLib/src/astro
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r4857 r4898 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.8 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-08- 23 23:23:05$12 * @version $Revision: 1.84 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-30 01:14:10 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 219 219 } 220 220 221 222 bool psMemCheckPlane(psPtr ptr) 223 { 224 return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeFree ); 225 } 226 227 bool psMemCheckSphere(psPtr ptr) 228 { 229 return ( psMemGetDeallocator(ptr) == (psFreeFunc)sphereFree ); 230 } 231 232 bool psMemCheckCube(psPtr ptr) 233 { 234 return ( psMemGetDeallocator(ptr) == (psFreeFunc)cubeFree ); 235 } 236 237 bool psMemCheckPlaneTransform(psPtr ptr) 238 { 239 return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeTransformFree ); 240 } 241 221 242 psPlane* psPlaneTransformApply(psPlane* out, 222 243 const psPlaneTransform* transform, … … 267 288 return(pt); 268 289 } 290 291 bool psMemCheckPlaneDistort(psPtr ptr) 292 { 293 return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeDistortFree ); 294 } 295 296 269 297 270 298 /****************************************************************************** … … 343 371 return(p); 344 372 } 373 374 bool psMemCheckProjection(psPtr ptr) 375 { 376 return ( psMemGetDeallocator(ptr) == (psFreeFunc)projectionFree ); 377 } 378 379 345 380 346 381 psPlane* psProject(const psSphere* coord, -
trunk/psLib/src/astro/psCoord.h
r4877 r4898 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-08- 25 23:42:01$12 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-30 01:14:10 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 219 219 ); 220 220 221 /** Checks the type of a particular pointer. 222 * 223 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 224 * 225 * @return bool: True if the pointer matches a psPlane structure, false otherwise. 226 */ 227 bool psMemCheckPlane( 228 psPtr ptr ///< the pointer whose type to check 229 ); 230 231 /** Checks the type of a particular pointer. 232 * 233 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 234 * 235 * @return bool: True if the pointer matches a psSphere structure, false otherwise. 236 */ 237 bool psMemCheckSphere( 238 psPtr ptr ///< the pointer whose type to check 239 ); 240 241 /** Checks the type of a particular pointer. 242 * 243 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 244 * 245 * @return bool: True if the pointer matches a psCube structure, false otherwise. 246 */ 247 bool psMemCheckCube( 248 psPtr ptr ///< the pointer whose type to check 249 ); 250 251 /** Checks the type of a particular pointer. 252 * 253 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 254 * 255 * @return bool: True if the pointer matches a psPlaneTransform structure, false otherwise. 256 */ 257 bool psMemCheckPlaneTransform( 258 psPtr ptr ///< the pointer whose type to check 259 ); 260 261 /** Checks the type of a particular pointer. 262 * 263 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 264 * 265 * @return bool: True if the pointer matches a psPlaneDistort structure, false otherwise. 266 */ 267 bool psMemCheckPlaneDistort( 268 psPtr ptr ///< the pointer whose type to check 269 ); 270 271 /** Checks the type of a particular pointer. 272 * 273 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 274 * 275 * @return bool: True if the pointer matches a psProjection structure, false otherwise. 276 */ 277 bool psMemCheckProjection( 278 psPtr ptr ///< the pointer whose type to check 279 ); 280 281 221 282 /** Projects a spherical coordinate to a linear coordinate system 222 283 * -
trunk/psLib/src/astro/psSphereOps.c
r4708 r4898 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-08- 05 01:40:45$9 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:10 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 33 33 #define JULIAN_CENTURY 36525.0 34 34 35 static void sphereRotFree(psSphereRot *result) 36 { 37 // There are non dynamic allocated items 38 } 35 39 36 40 psSphereRot* psSphereRotAlloc(double alphaP, … … 58 62 // calculate t*s*r. 59 63 psSphereRot* result = psSphereRotCombine(NULL,&t,&s); 64 psMemSetDeallocator(result, (psFreeFunc)sphereRotFree); 60 65 psSphereRotCombine(result,result,&r); 61 66 62 67 return result; 63 68 } 69 70 bool psMemCheckSphereRot(psPtr ptr) 71 { 72 return ( psMemGetDeallocator(ptr) == (psFreeFunc)sphereRotFree ); 73 } 74 64 75 65 76 psSphereRot* psSphereRotQuat(double q0, -
trunk/psLib/src/astro/psSphereOps.h
r4708 r4898 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-08- 05 01:40:45$9 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-08-30 01:14:10 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 72 72 ); 73 73 74 75 /** Checks the type of a particular pointer. 76 * 77 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 78 * 79 * @return bool: True if the pointer matches a psSphereRot structure, false otherwise. 80 */ 81 bool psMemCheckSphereRot( 82 psPtr ptr ///< the pointer whose type to check 83 ); 84 85 74 86 /** Allocator for psSphereRot given quaternions. 75 87 * -
trunk/psLib/src/astro/psTime.c
r4540 r4898 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 7-12 19:12:00 $12 * @version $Revision: 1.67 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-30 01:14:10 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 434 434 } 435 435 436 static void timeFree(psTime *outTime) 437 { 438 // There are non dynamic allocated items 439 } 440 436 441 psTime* psTimeAlloc(psTimeType type) 437 442 { … … 449 454 // Allocate memory for structure 450 455 outTime = (psTime*)psAlloc(sizeof(psTime)); 451 456 psMemSetDeallocator(outTime, (psFreeFunc)timeFree); 452 457 // Initialize members 453 458 outTime->sec = 0; … … 458 463 return outTime; 459 464 } 465 466 467 bool psMemCheckTime(psPtr ptr) 468 { 469 return ( psMemGetDeallocator(ptr) == (psFreeFunc)timeFree ); 470 } 471 460 472 461 473 psTime* psTimeGetNow(psTimeType type) -
trunk/psLib/src/astro/psTime.h
r4590 r4898 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 4$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 7-21 02:39:57$13 * @version $Revision: 1.35 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-08-30 01:14:10 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 100 100 ); 101 101 102 103 /** Checks the type of a particular pointer. 104 * 105 * Uses the appropriate deallocation function in psMemBlock to check the ptr datatype. 106 * 107 * @return bool: True if the pointer matches a psTime structure, false otherwise. 108 */ 109 bool psMemCheckTime( 110 psPtr ptr ///< the pointer whose type to check 111 ); 112 113 102 114 /** Get current time. 103 115 *
Note:
See TracChangeset
for help on using the changeset viewer.
