CelestiaFavorite.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:1k
源码类别:

OpenGL

开发平台:

Visual C++

  1. //
  2. //  CelestiaFavorite.h
  3. //  celestia
  4. //
  5. //  Created by Bob Ippolito on Fri Jun 07 2002.
  6. //  Copyright (c) 2002 Chris Laurel. All rights reserved.
  7. //
  8. #import "CelestiaUniversalCoord.h"
  9. #define URL_FAVORITES
  10. // parentFolder is totally vestigal crap
  11. @interface CelestiaFavorite : NSObject <NSCoding> {
  12. #ifdef URL_FAVORITES
  13.     NSString *_name;
  14.     NSString *url;
  15. #endif
  16.     NSValue* _data;
  17.     BOOL _freeWhenDone;
  18. }
  19. -(void)encodeWithCoder:(NSCoder*)coder;
  20. -(id)initWithCoder:(NSCoder*)coder;
  21. -(id)initWithDictionary:(NSDictionary*)dictionary;
  22. -(NSDictionary*)dictionary;
  23. -(void)activate;
  24. -(void)setName:(NSString*)name;
  25. -(id)initWithName:(NSString*)name;
  26. -(id)initWithName:(NSString*)name parentFolder:(CelestiaFavorite*)folder;
  27. -(id)initWithFolderName:(NSString*)name;
  28. -(id)initWithFolderName:(NSString*)name parentFolder:(CelestiaFavorite*)folder;
  29. -(NSString*)name;
  30. -(NSString*)selectionName;
  31. -(CelestiaUniversalCoord*)position;
  32. -(CelestiaVector*)orientation;
  33. -(NSNumber*)jd;
  34. -(BOOL)isFolder;
  35. -(void)setParentFolder:(NSString*)parentFolder;
  36. -(NSString*)parentFolder;
  37. -(BOOL)isEqualToFavorite:(CelestiaFavorite*)fav;
  38. -(BOOL)isEqualToString:(NSString*)str;
  39. -(BOOL)isEqual:(id)obj;
  40. //-(NSDictionary*)dictionaryRepresentation;
  41. -(NSString*)description;
  42. -(NSString*)selectionName;
  43. -(NSString*)coordinateSystem;
  44. #ifdef URL_FAVORITES
  45. -(NSString*)url;
  46. -(void)setUrl:(NSString *)aUrl;
  47. #endif
  48. @end