NTMapEnvelope
@interface NTMapEnvelope : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
A bounding area on the map. Can be defined by a map bounds object or by a convex bounding polygon. This class is intended for conservative object area estimation and fast intersection testing.
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;
Parameters
object
The reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;
Return Value
The hash value of this object.
-
Constructs an empty MapEnvelope object. Nothing is contained within this envelope.
Declaration
Objective-C
- (id)init;
-
Constructs a MapEnvelope object using map bounds.
Declaration
Objective-C
- (id)initWithBounds:(NTMapBounds *)bounds;
Parameters
bounds
The bounds for the envelope.
-
Constructs a MapEnvelope object from a convex bounding polygon.
Declaration
Objective-C
- (id)initWithConvexHull:(NTMapPosVector *)convexHull;
Parameters
convexHull
The list of convex hull points.
-
Returns the map bounds of this map envelope.
Declaration
Objective-C
- (NTMapBounds *)getBounds;
Return Value
The map bounds of this map envelope.
-
Returns the convex hull of this map envelope.
Declaration
Objective-C
- (NTMapPosVector *)getConvexHull;
Return Value
The convex hull of this map envelope.
-
Tests whether this map envelope contains another map envelope.
Declaration
Objective-C
- (BOOL)contains:(NTMapEnvelope *)envelope;
Parameters
envelope
The other map envelope.
Return Value
True if this map envelope contains the other map envelope.
-
Tests whether this map envelope intersects with another map envelope.
Declaration
Objective-C
- (BOOL)intersects:(NTMapEnvelope *)envelope;
Parameters
envelope
The other map envelope.
Return Value
True if this map envelope intersects the other map envelope.
-
Checks for equality between this and another envelope.
Declaration
Objective-C
- (BOOL)isEqualInternal:(NTMapEnvelope *)envelope;
Parameters
envelope
The other map envelope object.
Return Value
True if equal.
-
Returns the hash value of this object.
Declaration
Objective-C
- (int)hashInternal;
Return Value
The hash value of this object.
-
Creates a string representation of this map envelope, useful for logging.
Declaration
Objective-C
- (NSString *)description;
Return Value
The string representation of this map envelope.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;